mirror of
https://github.com/libexpat/libexpat.git
synced 2025-04-08 06:29:23 +00:00
Merge pull request #593 from orbitcowboy/master
Assign LPVOID pointer with NULL before it's being used
This commit is contained in:
commit
f1b05559cc
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ filemap(const TCHAR *name,
|
|||
|
||||
static void
|
||||
win32perror(const TCHAR *s) {
|
||||
LPVOID buf;
|
||||
LPVOID buf = NULL;
|
||||
if (FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER | FORMAT_MESSAGE_FROM_SYSTEM,
|
||||
NULL, GetLastError(),
|
||||
MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT), (LPTSTR)&buf, 0,
|
||||
|
|
Loading…
Add table
Reference in a new issue