OSDN Git Service

cmdutils: fix "oswr may be used uninitialized" warning
authorMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Apr 2012 16:38:10 +0000 (18:38 +0200)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 13 Apr 2012 16:38:10 +0000 (18:38 +0200)
Signed-off-by: Michael Niedermayer <michaelni@gmx.at>
cmdutils.c

index cd8b365..758a9a0 100644 (file)
@@ -418,7 +418,7 @@ void parse_loglevel(int argc, char **argv, const OptionDef *options)
 #define FLAGS(o) ((o)->type == AV_OPT_TYPE_FLAGS) ? AV_DICT_APPEND : 0
 int opt_default(const char *opt, const char *arg)
 {
-    const AVOption *oc, *of, *os, *oswr;
+    const AVOption *oc, *of, *os, *oswr = NULL;
     char opt_stripped[128];
     const char *p;
     const AVClass *cc = avcodec_get_class(), *fc = avformat_get_class(), *sc, *swr_class;