Commit 8176119b authored by Paul Eggert's avatar Paul Eggert
Browse files

* sound.c (wav_play): Initialize a variable to 0, to prevent undefined behavior.

parent d01f234b
......@@ -3,6 +3,7 @@
* sound.c (wav_play, au_play, Fplay_sound_internal):
Fix pointer signedness.
(alsa_choose_format): Remove unused local var.
(wav_play): Initialize a variable to 0, to prevent undefined behavior.
 
* region-cache.c (insert_cache_boundary): Redo var to avoid shadowing.
 
......@@ -600,7 +600,7 @@ wav_play (struct sound *s, struct sound_device *sd)
else
{
char *buffer;
int nbytes;
int nbytes = 0;
int blksize = sd->period_size ? sd->period_size (sd) : 2048;
int data_left = header->data_length;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment