1
0
mirror of https://github.com/simh/simh.git synced 2026-01-26 20:12:23 +00:00

SCP: Static Analyzer cleanups suggested by Peter Schorn

This commit is contained in:
Mark Pizzolato
2013-12-27 07:08:17 -08:00
parent bf58edfaab
commit 2bb502ee64
2 changed files with 5 additions and 2 deletions

3
scp.c
View File

@@ -3390,7 +3390,9 @@ if (dir) {
char FileName[PATH_MAX + 1], *MatchName;
char *c;
struct tm *local;
#if defined (HAVE_GLOB)
int i;
#endif
MatchName = 1 + strrchr (cptr, '/');
printf (" Directory of %s\n\n", DirName[0] ? DirName : "/");
@@ -7959,6 +7961,7 @@ t_stat scp_vhelpFromFile (FILE *st, struct sim_device *dptr,
#define XPANDQ 512
p = (char *) realloc (help, ((size_t)size) + XPANDQ +1);
if (!p) {
free (help);
fclose (fp);
return SCPE_MEM;
}