Gerald Pfeifer : winecfg: Add variable initialization in get_registry_version().
Alexandre Julliard
julliard at winehq.org
Mon May 5 07:14:56 CDT 2008
Module: wine
Branch: master
Commit: ac24472aaa093607f00a799361dc83820f906c0c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ac24472aaa093607f00a799361dc83820f906c0c
Author: Gerald Pfeifer <gerald at pfeifer.com>
Date: Fri May 2 19:08:09 2008 +0200
winecfg: Add variable initialization in get_registry_version().
---
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 53e912a..f6495a9 100644
--- a/programs/winecfg/appdefaults.c
+++ b/programs/winecfg/appdefaults.c
@@ -70,7 +70,7 @@ static const char szKeyNT[] = "Software\\Microsoft\\Windows NT\\CurrentVersion";
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-cvs
mailing list