plugins types BUGFIX one too large ws count
diff --git a/src/plugins_types.c b/src/plugins_types.c
index 464883b..2ae5407 100644
--- a/src/plugins_types.c
+++ b/src/plugins_types.c
@@ -1080,13 +1080,15 @@
/* remember the present items for further work */
LY_CHECK_RET(ly_set_new(&items));
- for (index = ws_count = lws_count = 0; index < value_len; index++, ws_count++) {
+ ws_count = lws_count = 0;
+ for (index = 0; index < value_len; ++index) {
if (isspace(value[index])) {
+ ++ws_count;
continue;
}
if (index == ws_count) {
lws_count = ws_count;
- } else if (ws_count > 1) {
+ } else if (ws_count) {
iscanonical = 0;
}
ws_count = 0;