diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-20 18:38:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2013-10-20 18:38:48 +0200 |
commit | 2d8ccf0adcae09cb9e14b01cfe20e4d77c3bbf5d (patch) | |
tree | 350d77c21587a31d697fe4c7bbc743679a7737c8 /libavutil/opt.c | |
parent | ad28fe35c55bb0351c8986812f43280430162a12 (diff) | |
download | ffmpeg-2d8ccf0adcae09cb9e14b01cfe20e4d77c3bbf5d.tar.gz |
avutil/opt: initialize ret
Fixes CID1108610
Fixes use of uninitialized variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil/opt.c')
-rw-r--r-- | libavutil/opt.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c index 5dd84e4201..a367dbbbcb 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -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) |