diff options
author | Chris Robinson <[email protected]> | 2012-02-17 01:30:41 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2012-02-17 01:30:41 -0800 |
commit | eb586b0ed741c25ebb209b6c1790a98b94796f4d (patch) | |
tree | 006a5a485c42070c4eef53f4ead080abff37ff06 | |
parent | 75aa96a4a67e205e82c7579183deb7541e94234d (diff) |
Initialize a variable before use
-rw-r--r-- | Alc/backends/mmdevapi.c | 2 |
1 files changed, 1 insertions, 1 deletions
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) { |