diff options
author | Alexander Gottwald <ago at freedesktop dot org> | 2004-12-01 12:42:17 +0000 |
---|---|---|
committer | Alexander Gottwald <ago at freedesktop dot org> | 2004-12-01 12:42:17 +0000 |
commit | 11a03ab908bfcfab8a3492684e8e9320e492d552 (patch) | |
tree | c252f92ab4bbe76f2e1c4bc5545efeda1d415033 | |
parent | f3d83ee153f42e8899b844377e6b842d93411e62 (diff) | |
download | xorg-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.c | 2 |
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); |