Subject: bug#8278: possibly-uninitialized variable in sound.c's wav_play

From: Paul Eggert <[email-masked]>
Date: Thu, 17 Mar 2011 23:41:08 -0700

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.)