From 2b0068bccbd75b3a95a246918f15cbbfb497aeb6 Mon Sep 17 00:00:00 2001 From: thib Date: Mon, 15 Jan 2001 18:57:38 +0000 Subject: [PATCH] bug corrected : read_opt fixed. --- fileconf.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/fileconf.c b/fileconf.c index 15e8a83..2764378 100644 --- a/fileconf.c +++ b/fileconf.c @@ -22,7 +22,7 @@ * `LICENSE' that comes with the fcron source distribution. */ - /* $Id: fileconf.c,v 1.34 2001-01-15 18:46:13 thib Exp $ */ + /* $Id: fileconf.c,v 1.35 2001-01-15 18:57:38 thib Exp $ */ #include "fcrontab.h" @@ -662,7 +662,7 @@ read_opt(char *ptr, CL *cl) fprintf(stderr, " Opt : \"%s\"\n", opt_name); } - if ( strcmp(opt_name, "strict") == 0 ) { + else if ( strcmp(opt_name, "strict") == 0 ) { if ( in_brackets && (ptr = get_bool(ptr, &i)) == NULL ) Handle_err; if (i == 0 ) @@ -673,7 +673,7 @@ read_opt(char *ptr, CL *cl) fprintf(stderr, " Opt : \"%s\" %d\n", opt_name, i); } - if ( strcmp(opt_name, "noticenotrun") == 0 ) { + else if ( strcmp(opt_name, "noticenotrun") == 0 ) { if ( in_brackets && (ptr = get_bool(ptr, &i)) == NULL ) Handle_err; if (i == 0 ) -- 2.50.1