Commit 4334ba04 authored by Michael Niedermayer's avatar Michael Niedermayer

ffprobe: fix use of uninitialized pointer in av_strtok()

Fixes CID733837
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent bdcff5af
......@@ -2143,6 +2143,10 @@ int main(int argc, char **argv)
if (!print_format)
print_format = av_strdup("default");
if (!print_format) {
ret = AVERROR(ENOMEM);
goto end;
}
w_name = av_strtok(print_format, "=", &buf);
w_args = buf;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment