OSDN Git Service

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)
committerClément Bœsch <ubitux@gmail.com>
Thu, 1 Sep 2011 18:23:40 +0000 (20:23 +0200)
commit3dd2c8bbbc725bb596eca879908881d252114243
treea3ad8514fe2cf412f2506ccc1c550d3372bd6ade
parent0baf651bc12d256cf71ae94d6219e65c9b0d3e5a
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.
libavformat/wav.c