From 4feb70b4848d78b9b75786ed99e9e123c5d9d308 Mon Sep 17 00:00:00 2001 From: Renaud Fivet Date: Mon, 5 Oct 2015 17:42:57 +0800 Subject: [PATCH] Fix CID114555: Unchecked return value. --- main.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/main.c b/main.c index 4be59e3..1e8be32 100644 --- a/main.c +++ b/main.c @@ -332,10 +332,13 @@ int main(int argc, char **argv) /* if invoked with no other startup files, run the system startup file here */ - if (startflag == FALSE) { - startup(""); - startflag = TRUE; + if( startflag == FALSE) { + if( startup( "") != TRUE) + mloutstr( "Default startup failed!") ; + + startflag = TRUE ; } + discmd = TRUE; /* P.K. */ /* if there are any files to read, read the first one! */