From eb586b0ed741c25ebb209b6c1790a98b94796f4d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Fri, 17 Feb 2012 01:30:41 -0800 Subject: Initialize a variable before use --- Alc/backends/mmdevapi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Alc/backends') diff --git a/Alc/backends/mmdevapi.c b/Alc/backends/mmdevapi.c index 471fc78d..86c174d1 100644 --- a/Alc/backends/mmdevapi.c +++ b/Alc/backends/mmdevapi.c @@ -223,7 +223,7 @@ static DevMap *ProbeDevices(IMMDeviceEnumerator *devenum, EDataFlow flowdir, ALu return NULL; } - count = 0; + idx = count = 0; hr = IMMDeviceCollection_GetCount(coll, &count); if(SUCCEEDED(hr) && count > 0) { -- cgit v1.2.3