mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-14 20:15:39 +00:00
winecfg: Fix use of uninitialized variable in some cases.
This commit is contained in:
parent
50ada0ff8e
commit
cf5435656f
|
@ -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 )))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue