cosmetic: fix possibly uninitialized variable warning in solv.c.
authorAles Kozumplik <ales@redhat.com>
Fri, 24 Aug 2012 13:30:29 +0000 (15:30 +0200)
committerAles Kozumplik <ales@redhat.com>
Fri, 24 Aug 2012 13:30:29 +0000 (15:30 +0200)
examples/solv.c

index 4c8355f..221a59c 100644 (file)
@@ -1299,7 +1299,7 @@ repomd_load_ext(Repo *repo, Repodata *data)
   struct repoinfo *cinfo;
   const unsigned char *filechksum;
   Id filechksumtype;
-  int r;
+  int r = 0;
 
   cinfo = repo->appdata;
   repomdtype = repodata_lookup_str(data, SOLVID_META, REPOSITORY_REPOMD_TYPE);