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)
This commit is contained in:
Holger Vogt 2018-07-21 21:02:10 +02:00
parent b07ae3123e
commit 2dd293707b
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;