From fb1642f2caa3690cb40f603fca22eeace09a0bfa Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Wed, 16 Jul 2008 23:04:49 +0000 Subject: fix up callsites of config_read to check for >= 0 --- util-linux/mdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'util-linux') diff --git a/util-linux/mdev.c b/util-linux/mdev.c index 8968e45..c04410c 100644 --- a/util-linux/mdev.c +++ b/util-linux/mdev.c @@ -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; -- cgit v1.1