diff options
author | Denis Vlasenko | 2008-07-16 23:04:49 +0000 |
---|---|---|
committer | Denis Vlasenko | 2008-07-16 23:04:49 +0000 |
commit | fb1642f2caa3690cb40f603fca22eeace09a0bfa (patch) | |
tree | 0ae2f20765b93696322e8c6c5e928b0b1be2cbee /networking | |
parent | c01340fe26b76e172805ff641ad9af6bc45cdc91 (diff) | |
download | busybox-fb1642f2caa3690cb40f603fca22eeace09a0bfa.zip busybox-fb1642f2caa3690cb40f603fca22eeace09a0bfa.tar.gz |
fix up callsites of config_read to check for >= 0
Diffstat (limited to 'networking')
-rw-r--r-- | networking/nameif.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nameif.c b/networking/nameif.c index 506f4fa..c5a715e 100644 --- a/networking/nameif.c +++ b/networking/nameif.c @@ -163,7 +163,7 @@ int nameif_main(int argc, char **argv) struct parser_t parser; if (config_open(&parser, fname)) { char *tokens[2]; - while (config_read(&parser, tokens, 2, 2, " \t", '#')) + while (config_read(&parser, tokens, 2, 2, " \t", '#') >= 0) prepend_new_eth_table(&clist, tokens[0], tokens[1]); config_close(&parser); } |