coverity 71844 - fix untrusted value. fgets could have nulled the pointer.

This commit is contained in:
iceman1001
2019-10-09 13:11:22 +02:00
parent 1ec34e00b6
commit 8842421422

View File

@@ -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 {