avformat/nutdec: Fix use of uinitialized value
Fixes CID1041175
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 56abf35151
)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
This commit is contained in:
@@ -540,6 +540,8 @@ static int decode_info_header(NUTContext *nut)
|
|||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
value = get_s(bc);
|
value = get_s(bc);
|
||||||
|
str_value[0] = 0;
|
||||||
|
|
||||||
if (value == -1) {
|
if (value == -1) {
|
||||||
type = "UTF-8";
|
type = "UTF-8";
|
||||||
get_str(bc, str_value, sizeof(str_value));
|
get_str(bc, str_value, sizeof(str_value));
|
||||||
|
Reference in New Issue
Block a user