1
0
mirror of https://github.com/simh/simh.git synced 2026-01-25 19:56:25 +00:00

SCP: Coverity inspired changes

This commit is contained in:
Mark Pizzolato
2022-03-06 02:11:57 -08:00
parent 87597ea7f4
commit 06c696385f
4 changed files with 51 additions and 27 deletions

View File

@@ -379,10 +379,13 @@ filelist[listcount + 1] = NULL;
char **sim_get_filelist (const char *filename)
{
t_stat r;
char **filelist = NULL;
sim_dir_scan (filename, _sim_filelist_entry, &filelist);
return filelist;
r = sim_dir_scan (filename, _sim_filelist_entry, &filelist);
if (r == SCPE_OK)
return filelist;
return NULL;
}
void sim_free_filelist (char ***pfilelist)