fix up callsites of config_read to check for >= 0

This commit is contained in:
Denis Vlasenko
2008-07-16 23:04:49 +00:00
parent c01340fe26
commit fb1642f2ca
4 changed files with 5 additions and 5 deletions

View File

@ -101,7 +101,7 @@ static void make_device(char *path, int delete)
if (!config_open(&parser, "/etc/mdev.conf"))
goto end_parse;
while (config_read(&parser, tokens, 4, 3, " \t", '#')) {
while (config_read(&parser, tokens, 4, 3, " \t", '#') >= 0) {
regmatch_t off[1+9*ENABLE_FEATURE_MDEV_RENAME_REGEXP];
char *val;