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
835835 {
836836 const AVOption *o = NULL;
837837 int ret;
838− char *av_uninit(parsed_key), *av_uninit(value);
839− const char *key;
840838 int offset= -1;
841839
842840 if (!args)
843841 return 0;
844842
845843 while (*args) {
844+ char *parsed_key, *value;
845+ const char *key;
846846 const char *shorthand = NULL;
847847 int additional_flags = 0;
848848

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