coverity 71844 - fix untrusted value. fgets could have nulled the pointer.
This commit is contained in:
@@ -160,6 +160,8 @@ check_script:
|
||||
if (!fgets(script_cmd_buf, sizeof(script_cmd_buf), current_cmdscriptfile())) {
|
||||
if (!pop_cmdscriptfile())
|
||||
break;
|
||||
if (script_cmd_buf == NULL)
|
||||
break;
|
||||
goto check_script;
|
||||
} else {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user