Subject: possibly-uninitialized variable in sound.c's wav_play
From: Paul Eggert <[email-masked]>
To: [email-masked]
Date: Thu, 17 Mar 2011 23:41:08 -0700
List-Id: <debbugs-submit.debbugs.gnu.org>

In the Emacs trunk, src/sound.c's wav_play function can
use an uninitialized variable 'nbytes' if it reads
a file whose header->data_length field is zero.

I plan to work around this by initializing nbytes to 0.

(This problem was discovered by using gcc -Wuninitialized.)