summaryrefslogtreecommitdiff
path: root/libavfilter/graphdump.c
diff options
context:
space:
mode:
authorZhao Zhili <zhilizhao@tencent.com>2019-11-21 14:58:26 +0800
committerMichael Niedermayer <michael@niedermayer.cc>2019-11-21 21:26:12 +0100
commitbbb68be0ccf4db59ba31341979dfcd9a9556f18d (patch)
treec7c1100cb76bf796b345be574be9c7c6dc919395 /libavfilter/graphdump.c
parent4a3aa77d7437d17ecf888ba3d5f4a199a9d1d555 (diff)
avfilter/graphdump: fix use of uninitialized variables
In case of av_bprint_finalize failed. Signed-off-by: Michael Niedermayer <michael@niedermayer.cc>
Diffstat (limited to 'libavfilter/graphdump.c')
-rw-r--r--libavfilter/graphdump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libavfilter/graphdump.c b/libavfilter/graphdump.c
index 8bc7b162d7..79ef1a733f 100644
--- a/libavfilter/graphdump.c
+++ b/libavfilter/graphdump.c
@@ -154,7 +154,7 @@ static void avfilter_graph_dump_to_buf(AVBPrint *buf, AVFilterGraph *graph)
char *avfilter_graph_dump(AVFilterGraph *graph, const char *options)
{
AVBPrint buf;
- char *dump;
+ char *dump = NULL;
av_bprint_init(&buf, 0, AV_BPRINT_SIZE_COUNT_ONLY);
avfilter_graph_dump_to_buf(&buf, graph);