Prevent passing uninitialised string to WARN

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




Bill Medland (medbi01@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();
 

[Index of Archives]     [Gimp for Windows]     [Red Hat]     [Samba]     [Yosemite Camping]     [Graphics Cards]     [Wine Home]

  Powered by Linux