summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/misc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/misc.c b/apps/misc.c
index fcdbb28fce..0bac986a6f 100644
--- a/apps/misc.c
+++ b/apps/misc.c
@@ -1387,7 +1387,7 @@ int split_string(char *str, const char split_char, char *vector[], const int vec
1387 char sep[2] = {split_char, '\0'}; 1387 char sep[2] = {split_char, '\0'};
1388 char *e, *p = strtok_r(str, sep, &e); 1388 char *e, *p = strtok_r(str, sep, &e);
1389 1389
1390 /* *p in the condition takes care of trailing splitters */ 1390 /* strtok takes care of leading & trailing splitters */
1391 for(i = 0; i < vector_length; i++) 1391 for(i = 0; i < vector_length; i++)
1392 { 1392 {
1393 vector[i] = p; 1393 vector[i] = p;