avformat/nutdec: Fix use of uinitialized value

Fixes CID1041175

Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
Michael Niedermayer 2015-05-12 18:20:23 +02:00
parent a23379a0a6
commit 56abf35151

View File

@ -524,6 +524,8 @@ static int decode_info_header(NUTContext *nut)
for (i = 0; i < count; i++) {
get_str(bc, name, sizeof(name));
value = get_s(bc);
str_value[0] = 0;
if (value == -1) {
type = "UTF-8";
get_str(bc, str_value, sizeof(str_value));