diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2011-03-17 23:42:43 -0700 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2011-03-17 23:42:43 -0700 |
commit | 8176119bc432d0ddb6187a4a84c81a7d9489153a (patch) | |
tree | 6b39adcce1cc6e15529b3206dcbf716585332b95 /src/sound.c | |
parent | d01f234b5f882640c9b9046fe48a0f3987dd088a (diff) | |
download | emacs-8176119bc432d0ddb6187a4a84c81a7d9489153a.tar.gz |
* sound.c (wav_play): Initialize a variable to 0, to prevent undefined behavior.
Diffstat (limited to 'src/sound.c')
-rw-r--r-- | src/sound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/sound.c b/src/sound.c index c886c8c40b1..a2fe7ccc8ce 100644 --- a/src/sound.c +++ b/src/sound.c @@ -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; |