]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
Work around bogus uninitialized warning from gcc
authorMichael Schroeder <mls@suse.de>
Fri, 7 Sep 2018 14:28:25 +0000 (16:28 +0200)
committerMichael Schroeder <mls@suse.de>
Fri, 7 Sep 2018 14:28:25 +0000 (16:28 +0200)
ext/repo_rpmdb.c

index 75bb6780c38910c6df603cd3fceed8916ae9a294..277c7aae2caf362d2b56e5c924bdfc3f131498bf 100644 (file)
@@ -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);