History

avfilter/graphdump: fix use of uninitialized variables

In case of av_bprint_finalize failed.

Zhao Zhili committed 6 years ago

Commit bbb68be1 parent 4a3aa771 file · +1 −1Browse files

Showing the changes to libavfilter/graphdump.c (1 of 1 file). Show all

Unified · Split

libavfilter/graphdump.c+1−1
@@ -154,7 +154,7 @@ static void avfilter_graph_dump_to_buf(AVBPrint *buf, AVFilterGraph *graph) · 153 unmodified lines
154154 char *avfilter_graph_dump(AVFilterGraph *graph, const char *options)
155155 {
156156 AVBPrint buf;
157− char *dump;
157+ char *dump = NULL;
158158
159159 av_bprint_init(&buf, 0, AV_BPRINT_SIZE_COUNT_ONLY);
160160 avfilter_graph_dump_to_buf(&buf, graph);

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t