diff --git a/src/sound.c b/src/sound.c index b3988524df0..5c2dfa08e21 100644 --- a/src/sound.c +++ b/src/sound.c @@ -1367,7 +1367,7 @@ current volume setting. The return value is the integer volume setting before the change, if any. */) (Lisp_Object volume) { - DWORD ui_volume, ui_volume_orig; + DWORD ui_volume = 0, ui_volume_orig; MMRESULT mm_result = MMSYSERR_NOERROR; if (FIXNUMP (volume))