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 /miscutils | |
| 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 'miscutils')
| -rw-r--r-- | miscutils/crond.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) | |||
| 468 | file->cf_User = xstrdup(fileName); | 468 | file->cf_User = xstrdup(fileName); |
| 469 | pline = &file->cf_LineBase; | 469 | pline = &file->cf_LineBase; |
| 470 | 470 | ||
| 471 | while (--maxLines && (n=config_read(&parser, tokens, 6, 0, " \t", '#')) > 0) { | 471 | while (--maxLines && (n=config_read(&parser, tokens, 6, 0, " \t", '#')) >= 0) { |
| 472 | CronLine *line; | 472 | CronLine *line; |
| 473 | 473 | ||
| 474 | if (DebugOpt) { | 474 | if (DebugOpt) { |
