aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-06-29 23:21:07 -0700
committerChris Robinson <[email protected]>2017-06-29 23:21:07 -0700
commitce9222b68619c3ddd361fd3ea43c3d9a6772694f (patch)
treef348b2b3a32d88466fad6b7c6a1413f66a1ca347
parent8a0d1e5191973999dd1d406f57a874e25918e549 (diff)
Clear initial ALC version vars before querying it
-rw-r--r--router/router.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/router/router.c b/router/router.c
index f54643f4..5dc1e43b 100644
--- a/router/router.c
+++ b/router/router.c
@@ -195,7 +195,7 @@ static void AddModule(HMODULE module, const WCHAR *name)
LOAD_PROC(alDistanceModel);
if(!err)
{
- ALCint alc_ver[2];
+ ALCint alc_ver[2] = { 0, 0 };
wcsncpy(newdrv.Name, name, 32);
newdrv.Module = module;
newdrv.alcGetIntegerv(NULL, ALC_MAJOR_VERSION, 1, &alc_ver[0]);