diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2013-10-20 18:38:48 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2014-03-07 04:04:07 +0100 |
commit | 67c3e3de55a43c0df0ca510baf1985c8ff5991eb (patch) | |
tree | c8428933e2fbdf10cb7569c8a0d4e423596fdcbc /libavutil | |
parent | 8b0880ff1b532831d44441df595e75bdb20a6329 (diff) | |
download | ffmpeg-67c3e3de55a43c0df0ca510baf1985c8ff5991eb.tar.gz |
avutil/opt: initialize ret
Fixes CID1108610
Fixes use of uninitialized variable
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
(cherry picked from commit 2d8ccf0adcae09cb9e14b01cfe20e4d77c3bbf5d)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'libavutil')
-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 61c76daa6e..3e0ed75aa5 100644 --- a/libavutil/opt.c +++ b/libavutil/opt.c @@ -249,7 +249,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) |