PATCH: msi / is used uninit

Marcus Meissner meissner at suse.de
Thu Jan 13 09:06:54 CST 2005


Hi,

gcc 4 reports:
action.c: In function 'ACTION_InstallFiles':
action.c:3124: warning: 'rc' is used uninitialized in this function

Ciao, Marcus

Changelog:
	Initialize rc in create_component_directory().

Index: dlls/msi/action.c
===================================================================
RCS file: /home/wine/wine/dlls/msi/action.c,v
retrieving revision 1.65
diff -u -r1.65 action.c
--- dlls/msi/action.c	10 Jan 2005 13:29:25 -0000	1.65
+++ dlls/msi/action.c	13 Jan 2005 15:05:29 -0000
@@ -3104,7 +3104,7 @@
 
 inline static UINT create_component_directory ( MSIPACKAGE* package, INT component)
 {
-    UINT rc;
+    UINT rc = ERROR_SUCCESS;
     MSIFOLDER *folder;
     LPWSTR install_path;
 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-patches/attachments/20050113/ca484272/attachment.pgp


More information about the wine-patches mailing list