From: Michael Schroeder Date: Fri, 7 Sep 2018 14:28:25 +0000 (+0200) Subject: Work around bogus uninitialized warning from gcc X-Git-Tag: 0.6.36~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7c8ab7d6deee64eb55dcbcc7ee1c2e36da69fa21;p=thirdparty%2Flibsolv.git Work around bogus uninitialized warning from gcc --- diff --git a/ext/repo_rpmdb.c b/ext/repo_rpmdb.c index 75bb6780..277c7aae 100644 --- a/ext/repo_rpmdb.c +++ b/ext/repo_rpmdb.c @@ -1000,7 +1000,7 @@ addchangelog(Repodata *data, Id handle, RpmHead *rpmhead) char **cn; char **cx; uint32_t *ct; - int i, cnc, cxc, ctc; + int i, cnc, cxc, ctc = 0; Queue hq; ct = headint32array(rpmhead, TAG_CHANGELOGTIME, &ctc);