diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-16 23:04:49 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-07-16 23:04:49 +0000 |
commit | fb1642f2caa3690cb40f603fca22eeace09a0bfa (patch) | |
tree | 0ae2f20765b93696322e8c6c5e928b0b1be2cbee /util-linux/mdev.c | |
parent | c01340fe26b76e172805ff641ad9af6bc45cdc91 (diff) | |
download | busybox-w32-fb1642f2caa3690cb40f603fca22eeace09a0bfa.tar.gz busybox-w32-fb1642f2caa3690cb40f603fca22eeace09a0bfa.tar.bz2 busybox-w32-fb1642f2caa3690cb40f603fca22eeace09a0bfa.zip |
fix up callsites of config_read to check for >= 0
Diffstat (limited to 'util-linux/mdev.c')
-rw-r--r-- | util-linux/mdev.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c index 8968e45f8..c04410c0c 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c | |||
@@ -101,7 +101,7 @@ static void make_device(char *path, int delete) | |||
101 | if (!config_open(&parser, "/etc/mdev.conf")) | 101 | if (!config_open(&parser, "/etc/mdev.conf")) |
102 | goto end_parse; | 102 | goto end_parse; |
103 | 103 | ||
104 | while (config_read(&parser, tokens, 4, 3, " \t", '#')) { | 104 | while (config_read(&parser, tokens, 4, 3, " \t", '#') >= 0) { |
105 | regmatch_t off[1+9*ENABLE_FEATURE_MDEV_RENAME_REGEXP]; | 105 | regmatch_t off[1+9*ENABLE_FEATURE_MDEV_RENAME_REGEXP]; |
106 | char *val; | 106 | char *val; |
107 | 107 | ||