From 1a66841e3656a6ec7c844918cb3bdb0f49e1f364 Mon Sep 17 00:00:00 2001 From: rlar Date: Thu, 3 Oct 2013 11:54:58 +0200 Subject: [PATCH] inp_fix_ternary_operator_str(), cleanup --- src/frontend/inpcom.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/frontend/inpcom.c b/src/frontend/inpcom.c index 187c61b17..e966b1129 100644 --- a/src/frontend/inpcom.c +++ b/src/frontend/inpcom.c @@ -1914,12 +1914,11 @@ inp_fix_ternary_operator_str(char *line, bool all) // get if str_ptr = skip_ws(question + 1); if (*str_ptr == '(') { - str_ptr2 = inp_search_closing_paren1(str_ptr /* +1 */); - if (!str_ptr2) { + colon = inp_search_closing_paren1(str_ptr) + 1; + if (!colon) { fprintf(stderr, "ERROR: problem parsing 'if' of ternary string %s!\n", line); controlled_exit(EXIT_FAILURE); } - colon = str_ptr2 + 1; while (*colon != ':' && *colon != '\0') colon++; if (*colon != ':') {