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

@ -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) {