winecfg: Fix use of uninitialized variable in some cases.

This commit is contained in:
Gerald Pfeifer 2011-04-20 01:27:51 +02:00 committed by Alexandre Julliard
parent 50ada0ff8e
commit cf5435656f

View file

@ -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 )))
{