programs/winecfg/appdefaults.c warning fix

Gerald Pfeifer gerald at pfeifer.com
Fri May 2 12:08:09 CDT 2008


This addresses an (as far as I can tell) valid warning identified by
current development snapshots of GCC.

Gerald

ChangeLog:
Add variable initialization in get_registry_version().

Index: programs/winecfg/appdefaults.c
===================================================================
RCS file: /home/wine/wine/programs/winecfg/appdefaults.c,v
retrieving revision 1.35
diff -u -3 -p -r1.35 appdefaults.c
--- programs/winecfg/appdefaults.c	11 Mar 2008 15:53:29 -0000	1.35
+++ programs/winecfg/appdefaults.c	2 May 2008 16:58:13 -0000
@@ -70,7 +70,7 @@ static const char szKeyNT[] = "Software\
 
 static int get_registry_version(void)
 {
-    int i, best = -1, platform, major, minor, build = 0;
+    int i, best = -1, platform, major, minor = 0, build = 0;
     char *p, *ver;
 
     if ((ver = get_reg_key( HKEY_LOCAL_MACHINE, szKeyNT, "CurrentVersion", NULL )))



More information about the wine-patches mailing list