]> git.ipfire.org Git - thirdparty/libsolv.git/commitdiff
cosmetic: fix possibly uninitialized variable warning in solv.c. 16/head 17/head
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 4c8355ff64959e5734e59ee732f42b6a65fd7805..221a59c4464c69e7b9ebfab0c46b633b8917795b 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);