Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.busybox.net/busybox.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko <vda.linux@googlemail.com>2008-05-31 11:34:14 +0400
committerDenis Vlasenko <vda.linux@googlemail.com>2008-05-31 11:34:14 +0400
commitd12fcc20dac8415a89898fdaa9bfabaac39e5e33 (patch)
treefca611e3fc499941e4c294fd22edf409fde9f1ed /libbb/compare_string_array.c
parent3e57adb73198874b3924cb9aa8770193c894b1a9 (diff)
libiproute: fix option parsing, so that "ip -o link" works again.
closes bug 3524
Diffstat (limited to 'libbb/compare_string_array.c')
-rw-r--r--libbb/compare_string_array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/libbb/compare_string_array.c b/libbb/compare_string_array.c
index 151b50817..ec7f94e79 100644
--- a/libbb/compare_string_array.c
+++ b/libbb/compare_string_array.c
@@ -23,7 +23,7 @@ int index_in_strings(const char *strings, const char *key)
{
int idx = 0;
- while (strings[0]) {
+ while (*strings) {
if (strcmp(strings, key) == 0) {
return idx;
}
@@ -57,7 +57,7 @@ int index_in_substrings(const char *strings, const char *key)
if (len) {
int idx = 0;
- while (strings[0]) {
+ while (*strings) {
if (strncmp(strings, key, len) == 0) {
return idx;
}