1
0
mirror of https://github.com/open-simh/simh.git synced 2026-04-28 04:55:13 +00:00

SCP: Fix Coverity identified issues

This commit is contained in:
Mark Pizzolato
2021-04-11 15:48:01 -07:00
parent 96c32fcb80
commit c004fcc2ba
2 changed files with 2 additions and 1 deletions

View File

@@ -332,6 +332,7 @@ if (((*file == '"') && (file[strlen (file) - 1] == '"')) ||
if (without_quotes == NULL)
return NULL;
if (SCPE_OK != sim_decode_quoted_string (file, without_quotes, &dsize)) {
free (without_quotes);
errno = EINVAL;
return NULL;
}