This is an automated email from the git hooks/post-receive script. guillem pushed a commit to branch main in repository dpkg.
View the commit online: https://git.dpkg.org/cgit/dpkg/dpkg.git/commit/?id=78bbc5b3089cd910f5945a4850f987e17d7ee75f commit 78bbc5b3089cd910f5945a4850f987e17d7ee75f Author: Guillem Jover <[email protected]> AuthorDate: Fri Feb 24 02:36:18 2023 +0100 libdpkg: Unconditionally initialize c variable in parse_stanza() The compiler can get confused and consider that c does not always get initialized, but the code flow makes sure that either the first loop has entered and thus c gets initialized, or if it did not, then we do an early return immediately after. Warned-by: clang-16 -Wconditional-uninitialized --- lib/dpkg/parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/dpkg/parse.c b/lib/dpkg/parse.c index b9ed596d7..c2ab28464 100644 --- a/lib/dpkg/parse.c +++ b/lib/dpkg/parse.c @@ -620,7 +620,7 @@ bool parse_stanza(struct parsedb_state *ps, struct field_state *fs, parse_field_func *parse_field, void *parse_obj) { - int c; + int c = '\0'; /* Skip adjacent new lines. */ while (!parse_at_eof(ps)) { -- Dpkg.Org's dpkg

