Browse Source

initialize pn in ft_getpnames() parse.c

initialize dwLen in tesCreateSystemInfo() in com_sysinfo.c
Both were reported by MSVC Code Analysis
Crash of ngspice.dll in Eeschema is thus removed
(hopefully in general)
pre-master-46
Holger Vogt 8 years ago
parent
commit
2dd293707b
  1. 2
      src/frontend/com_sysinfo.c
  2. 2
      src/frontend/parse.c

2
src/frontend/com_sysinfo.c

@ -384,7 +384,7 @@ tesCreateSystemInfo(TesSystemInfo *info)
OSVERSIONINFOA version;
char *versionStr = NULL, *procStr, *freeStr;
DWORD major, minor;
DWORD dwLen;
DWORD dwLen = 0;
HKEY hkBaseCPU;
LONG lResult;

2
src/frontend/parse.c

@ -32,7 +32,7 @@ void db_print_pnode_tree(struct pnode *p, char *print);
struct pnode *
ft_getpnames(wordlist *wl, bool check)
{
struct pnode *pn;
struct pnode *pn = NULL;
char *xsbuf, *sbuf;
int rv;

Loading…
Cancel
Save