Commit 2d8ccf0a authored by Michael Niedermayer's avatar Michael Niedermayer

avutil/opt: initialize ret

Fixes CID1108610
Fixes use of uninitialized variable
Signed-off-by: 's avatarMichael Niedermayer <michaelni@gmx.at>
parent ad28fe35
......@@ -254,7 +254,7 @@ int av_set_string3(void *obj, const char *name, const char *val, int alloc, cons
int av_opt_set(void *obj, const char *name, const char *val, int search_flags)
{
int ret;
int ret = 0;
void *dst, *target_obj;
const AVOption *o = av_opt_find2(obj, name, NULL, 0, search_flags, &target_obj);
if (!o || !target_obj)
......
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