Prevent passing uninitialised string to WARN
Medland, Bill
Bill.Medland at accpac.com
Thu Jan 17 09:27:45 CST 2002
-------------- next part --------------
Bill Medland (medbi01 at accpac.com)
Prevent trying to handle uninitialised memory as a string.
Index: wine/loader/module.c
===================================================================
RCS file: /home/wine/wine/loader/module.c,v
retrieving revision 1.144
diff -u -r1.144 module.c
--- wine/loader/module.c 2001/12/20 00:19:42 1.144
+++ wine/loader/module.c 2002/01/17 13:45:52
@@ -1379,6 +1379,7 @@
filename = HeapAlloc ( GetProcessHeap(), 0, MAX_PATH + 1 );
if ( !filename ) return NULL;
+ *filename = 0; /* Just in case we don't set it before goto error */
RtlAcquirePebLock();
More information about the wine-patches
mailing list