commit | ca5b201310c430b4ccbcd7bea5ab64590ed7ad61 | [log] [tgz] |
---|---|---|
author | Bill Medland <medbi01@accpac.com> | Fri Jan 18 18:58:08 2002 +0000 |
committer | Alexandre Julliard <julliard@winehq.org> | Fri Jan 18 18:58:08 2002 +0000 |
tree | 802c8903436a2dc213188b138ba2ac8bfea6bc5e | |
parent | 9ff202e65c0d1a8649e3bf285caefa0ac52566dc [diff] [blame] |
Prevent trying to handle uninitialised memory as a string.
diff --git a/loader/module.c b/loader/module.c index b49e28b..c8f716d 100644 --- a/loader/module.c +++ b/loader/module.c
@@ -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();