Welcome to little lamb

Code » slicd » commit 5025762

Minor fix/optimization

author Olivier Brunel
2016-05-16 17:41:50 UTC
committer Olivier Brunel
2016-05-16 17:41:50 UTC
parent 444df6cffcf7ce50673d1c93454f7148e9b66fdf

Minor fix/optimization

src/libslicd/slicd_add_job_from_cronline.c +1 -1

diff --git a/src/libslicd/slicd_add_job_from_cronline.c b/src/libslicd/slicd_add_job_from_cronline.c
index e1d5d5c..d952539 100644
--- a/src/libslicd/slicd_add_job_from_cronline.c
+++ b/src/libslicd/slicd_add_job_from_cronline.c
@@ -152,7 +152,7 @@ again:
     if (!is_blank (**s) && **s != ',')
         return -SLICD_ERR_SYNTAX;
 
-    if (from == min && to == max && step == 1)
+    if (step == 1)
         slicd_job_set (job, field, from, to);
     else
         for ( ; from <= to; from += step)