Fix CID114555: Unchecked return value.

This commit is contained in:
Renaud 2015-10-05 17:42:57 +08:00
parent fa96d9e63e
commit 4feb70b484
1 changed files with 6 additions and 3 deletions

9
main.c
View File

@ -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! */