From ef7207b4211f7ac403f1b1657d296df02945a368 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Thu, 19 May 2016 11:20:21 +0800 Subject: [PATCH] cppcheck: Variable 'startflag' was assigned a value that is never used. --- main.c | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/main.c b/main.c index e34f1ee..b26983e 100644 --- a/main.c +++ b/main.c @@ -297,12 +297,8 @@ int main(int argc, char **argv) /* if invoked with no other startup files, run the system startup file here */ - if( startflag == FALSE) { - if( startup( "") != TRUE) - mloutstr( "Default startup failed!") ; - - startflag = TRUE ; - } + if( (startflag == FALSE) && (startup( "") != TRUE)) + mloutstr( "Default startup failed!") ; discmd = TRUE; /* P.K. */