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 --- miscutils/crond.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'miscutils') diff --git a/miscutils/crond.c b/miscutils/crond.c index af37bb15b..41f151753 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -468,7 +468,7 @@ static void SynchronizeFile(const char *fileName) file->cf_User = xstrdup(fileName); pline = &file->cf_LineBase; - while (--maxLines && (n=config_read(&parser, tokens, 6, 0, " \t", '#')) > 0) { + while (--maxLines && (n=config_read(&parser, tokens, 6, 0, " \t", '#')) >= 0) { CronLine *line; if (DebugOpt) { -- cgit v1.2.3