diff options
Diffstat (limited to 'libbb/compare_string_array.c')
-rw-r--r-- | libbb/compare_string_array.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libbb/compare_string_array.c b/libbb/compare_string_array.c index 7b5ce85..151b508 100644 --- a/libbb/compare_string_array.c +++ b/libbb/compare_string_array.c @@ -70,9 +70,9 @@ int index_in_substrings(const char *strings, const char *key) const char *nth_string(const char *strings, int n) { - while (n) { - n--; - strings += strlen(strings) + 1; - } - return strings; + while (n) { + n--; + strings += strlen(strings) + 1; + } + return strings; } |