From: Zbigniew Jędrzejewski-Szmek Date: Tue, 16 Nov 2021 13:24:46 +0000 (+0100) Subject: analyze: supress bogus compiler warning X-Git-Tag: v250-rc1~235^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F21392%2Fhead;p=thirdparty%2Fsystemd.git analyze: supress bogus compiler warning --- diff --git a/src/analyze/analyze.c b/src/analyze/analyze.c index ce6f1e395da..740faa507bb 100644 --- a/src/analyze/analyze.c +++ b/src/analyze/analyze.c @@ -1708,7 +1708,7 @@ static int dump_syscall_filters(int argc, char *argv[], void *userdata) { if (strv_isempty(strv_skip(argv, 1))) { _cleanup_set_free_ Set *kernel = NULL, *known = NULL; const char *sys; - int k; + int k = 0; /* explicit initialization to appease gcc */ NULSTR_FOREACH(sys, syscall_filter_sets[SYSCALL_FILTER_SET_KNOWN].value) if (set_put_strdup(&known, sys) < 0)