summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Niedermayer <[email protected]>2013-10-20 18:38:48 +0200
committerMichael Niedermayer <[email protected]>2014-03-08 16:25:20 +0100
commitf83f09bfcef57e5ea871247ca2d6694dcdd04c0a (patch)
tree1d2d1939e4a10ffa305a9ba7242624e30bb2428d
parentba59ab5964625b1128d9f3b3dbd435b962a4a03f (diff)
avutil/opt: initialize ret
Fixes CID1108610 Fixes use of uninitialized variable Signed-off-by: Michael Niedermayer <[email protected]> (cherry picked from commit 2d8ccf0adcae09cb9e14b01cfe20e4d77c3bbf5d) Signed-off-by: Michael Niedermayer <[email protected]>
-rw-r--r--libavutil/opt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavutil/opt.c b/libavutil/opt.c
index 0957281076..76e8c90b18 100644
--- a/libavutil/opt.c
+++ b/libavutil/opt.c
@@ -236,7 +236,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)