wav: init st to NULL to avoid a false-positive warning.
authorClément Bœsch <ubitux@gmail.com>
Thu, 1 Sep 2011 18:06:05 +0000 (20:06 +0200)
committerDerek Buitenhuis <derek.buitenhuis@gmail.com>
Mon, 23 Jul 2012 15:34:08 +0000 (11:34 -0400)
commit61884b9d1b6be16dbbfae6700cf8628e037ea28b
treea3f4be0f654bf6ab3199f078cc6cd0d55bdf19ea
parent37c6ad23451eeda83621d34ff9ab0f6fd2cbf3dd
wav: init st to NULL to avoid a false-positive warning.

If st is NULL, it means no 'fmt ' tag is found, but 'data' tag (which
needs a previous 'fmt ' tag to be parsed correctly and st initialized)
check will make sure st is never dereferenced in that case.

Fixes warning:
    libavformat/wav.c: In function ‘wav_read_header’:
    libavformat/wav.c:499:44: warning: ‘st’ may be used uninitialized in this function [-Wmaybe-uninitialized]

Signed-off-by: Derek Buitenhuis <derek.buitenhuis@gmail.com>
libavformat/wav.c