summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Gottwald <ago at freedesktop dot org>2004-11-15 13:29:56 +0000
committerAlexander Gottwald <ago at freedesktop dot org>2004-11-15 13:29:56 +0000
commitb798ea11911ac58a8e6e7d15a2a643b023859749 (patch)
tree4040732a265c094c6d3044ac6da89e9df5b4e330
parent436108cd6c84053698e5ca629096f59b34f50c2a (diff)
downloadxorg-lib-libX11-b798ea11911ac58a8e6e7d15a2a643b023859749.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 172fc9e5..b9da8d72 100644
--- a/src/XlibInt.c
+++ b/src/XlibInt.c
@@ -3365,7 +3365,7 @@ void* _XFopenFile(path, mode)
_Xconst char* mode;
{
char buf[MAX_PATH];
- char* bufp;
+ char* bufp = NULL;
void* ret = NULL;
UINT olderror = SetErrorMode (SEM_FAILCRITICALERRORS);