diff mbox

[FFmpeg-devel] avfilter/graphdump: fix use of uninitialized variables

Message ID 20191121065826.23922-1-quinkblack@foxmail.com
State Accepted
Commit bbb68be0ccf4db59ba31341979dfcd9a9556f18d
Headers show

Commit Message

Zhao Zhili Nov. 21, 2019, 6:58 a.m. UTC
From: Zhao Zhili <zhilizhao@tencent.com>

In case of av_bprint_finalize failed.
---
 libavfilter/graphdump.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Comments

Michael Niedermayer Nov. 21, 2019, 8:32 p.m. UTC | #1
On Thu, Nov 21, 2019 at 02:58:26PM +0800, quinkblack@foxmail.com wrote:
> From: Zhao Zhili <zhilizhao@tencent.com>
> 
> In case of av_bprint_finalize failed.
> ---
>  libavfilter/graphdump.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

will apply

thx

[...]
diff mbox

Patch

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);