Gerald Pfeifer : winecfg: Fix use of uninitialized variable in some cases.

Alexandre Julliard julliard at winehq.org
Wed Apr 20 11:05:18 CDT 2011


Module: wine
Branch: master
Commit: cf5435656f809fa348e086a2732c7e2f8d4edf85
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=cf5435656f809fa348e086a2732c7e2f8d4edf85

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Wed Apr 20 01:27:51 2011 +0200

winecfg: Fix use of uninitialized variable in some cases.

---

 programs/winecfg/appdefaults.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/programs/winecfg/appdefaults.c b/programs/winecfg/appdefaults.c
index 8f431c2..f90607e 100644
--- a/programs/winecfg/appdefaults.c
+++ b/programs/winecfg/appdefaults.c
@@ -75,7 +75,7 @@ static const char szKeyProdNT[] = "System\\CurrentControlSet\\Control\\ProductOp
 static int get_registry_version(void)
 {
     int i, best = -1, platform, major, minor = 0, build = 0;
-    char *p, *ver, *type;
+    char *p, *ver, *type = NULL;
 
     if ((ver = get_reg_key( HKEY_LOCAL_MACHINE, szKeyNT, "CurrentVersion", NULL )))
     {




More information about the wine-cvs mailing list