SCP: Fix Coverity identified issues
This commit is contained in:
parent
96c32fcb80
commit
c004fcc2ba
2 changed files with 2 additions and 1 deletions
2
scp.c
2
scp.c
|
@ -15730,7 +15730,7 @@ while (t->function_name) {
|
||||||
if (*remainder != '\0')
|
if (*remainder != '\0')
|
||||||
return sim_messagef (SCPE_IERR, "function: %s (\"\", gbuf, 0); returned a non empty string: \"%s\"\n", t->function_name, remainder);
|
return sim_messagef (SCPE_IERR, "function: %s (\"\", gbuf, 0); returned a non empty string: \"%s\"\n", t->function_name, remainder);
|
||||||
|
|
||||||
while (*input) {
|
while ((input != NULL) && (*input != '\0')) {
|
||||||
char end_char_string[32];
|
char end_char_string[32];
|
||||||
|
|
||||||
if (sim_isprint (d->end_char))
|
if (sim_isprint (d->end_char))
|
||||||
|
|
|
@ -332,6 +332,7 @@ if (((*file == '"') && (file[strlen (file) - 1] == '"')) ||
|
||||||
if (without_quotes == NULL)
|
if (without_quotes == NULL)
|
||||||
return NULL;
|
return NULL;
|
||||||
if (SCPE_OK != sim_decode_quoted_string (file, without_quotes, &dsize)) {
|
if (SCPE_OK != sim_decode_quoted_string (file, without_quotes, &dsize)) {
|
||||||
|
free (without_quotes);
|
||||||
errno = EINVAL;
|
errno = EINVAL;
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue