summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gottwald <ago at freedesktop dot org>2004-12-01 12:42:17 +0000
committerAlexander Gottwald <ago at freedesktop dot org>2004-12-01 12:42:17 +0000
commit11a03ab908bfcfab8a3492684e8e9320e492d552 (patch)
treec252f92ab4bbe76f2e1c4bc5545efeda1d415033
parentf3d83ee153f42e8899b844377e6b842d93411e62 (diff)
downloadxorg-lib-libX11-11a03ab908bfcfab8a3492684e8e9320e492d552.tar.gz
Bugzilla #1864, http://freedesktop.org/bugzilla/show_bug.cgi?id=1864 Initialize pointer to NULL to avoid freeing random memory
-rw-r--r--src/XlibInt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/XlibInt.c b/src/XlibInt.c
index c64ea9c7..17ed4cce 100644
--- a/src/XlibInt.c
+++ b/src/XlibInt.c
@@ -3352,7 +3352,7 @@ int _XOpenFile(path, flags)
int flags;
{
char buf[MAX_PATH];
- char* bufp;
+ char* bufp = NULL;
int ret = -1;
UINT olderror = SetErrorMode (SEM_FAILCRITICALERRORS);