winspool.drv: Initialize name to NULL in case get_filename fails
James Hawkins
truiken at gmail.com
Thu Jan 11 03:19:58 CST 2007
Hi,
Changelog:
* Initialize name to NULL in case get_filename fails.
dlls/winspool.drv/info.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
--
James Hawkins
-------------- next part --------------
diff --git a/dlls/winspool.drv/info.c b/dlls/winspool.drv/info.c
index 551e8fc..2267585 100644
--- a/dlls/winspool.drv/info.c
+++ b/dlls/winspool.drv/info.c
@@ -7339,7 +7339,7 @@ LPWSTR WINAPI StartDocDlgW( HANDLE hPrinter, DOCINFOW *doc )
if(doc->lpszOutput == NULL || !strcmpW(doc->lpszOutput, FILE_Port))
{
- LPWSTR name;
+ LPWSTR name = NULL;
get_filename(&name);
if(name)
{
--
1.4.4.2
More information about the wine-patches
mailing list