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:
parent
b07ae3123e
commit
2dd293707b
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue