From ca5b201310c430b4ccbcd7bea5ab64590ed7ad61 Mon Sep 17 00:00:00 2001 From: Bill Medland Date: Fri, 18 Jan 2002 18:58:08 +0000 Subject: [PATCH] Prevent trying to handle uninitialised memory as a string. --- loader/module.c | 1 + 1 file changed, 1 insertion(+) diff --git a/loader/module.c b/loader/module.c index b49e28b6ad4..c8f716d8c71 100644 --- a/loader/module.c +++ b/loader/module.c @@ -1379,6 +1379,7 @@ WINE_MODREF *MODULE_LoadLibraryExA( LPCSTR libname, HFILE hfile, DWORD flags ) 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();