diff options
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r-- | miscutils/crond.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c index 085cf6e..53c255f 100644 --- a/miscutils/crond.c +++ b/miscutils/crond.c @@ -589,10 +589,8 @@ static void SynchronizeFile(const char *fileName) CronLine line; char *ptr; - if (buf[0]) { - buf[strlen(buf) - 1] = 0; - } - if (buf[0] == 0 || buf[0] == '#' || buf[0] == ' ' || buf[0] == '\t') { + trim(buf); + if (buf[0] == 0 || buf[0] == '#') { continue; } if (--maxEntries == 0) { |