From 30b445143307c9039a47fa3ea08dcd1dc6c3f4aa Mon Sep 17 00:00:00 2001 From: rlar Date: Sun, 26 May 2013 00:27:17 +0200 Subject: [PATCH] inpcom.c, bug fix (incorrect check for mal formed line) --- src/frontend/inpcom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 10d5c5f60..3bd4d41ae 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1013,7 +1013,7 @@ inp_chk_for_multi_in_vcvs(struct line *deck, int *line_number) fcn_name = copy_substring(bool_ptr, str_ptr1); str_ptr1 = strchr(str_ptr1, ')'); comma_ptr = str_ptr2 = strchr(line, ','); - if ((str_ptr1 == NULL)|| (str_ptr1 == NULL)) { + if (!str_ptr1 || !comma_ptr) { fprintf(stderr, "ERROR: mal formed line: %s\n", line); controlled_exit(EXIT_FAILURE); }