History

avfilter/avfilter: Don't use av_uninit

GCC 9-13 do not emit warnings for this at all optimization levels even when -Wmaybe-uninitialized is not disabled.

Andreas Rheinhardt committed 2 years ago

Commit 7895d181 parent 8d3fdb41 file · +2 −2Browse files

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

Unified · Split

libavfilter/avfilter.c+2−2
@@ -835,14 +835,14 @@ int ff_filter_opt_parse(void *logctx, const AVClass *priv_class, · 834 unmodified lines
835{835{
836 const AVOption *o = NULL;836 const AVOption *o = NULL;
837 int ret;837 int ret;
838 char *av_uninit(parsed_key), *av_uninit(value);
839 const char *key;
840 int offset= -1;838 int offset= -1;
841 839
842 if (!args)840 if (!args)
843 return 0;841 return 0;
844 842
845 while (*args) {843 while (*args) {
844 char *parsed_key, *value;
845 const char *key;
846 const char *shorthand = NULL;846 const char *shorthand = NULL;
847 int additional_flags = 0;847 int additional_flags = 0;
848 848

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