diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2019-05-07 16:01:47 +0300 |
---|---|---|
committer | Florian Festi <ffesti@redhat.com> | 2019-05-07 15:24:43 +0200 |
commit | 57899bd3bfd8f310bde823df81db556b6fd606dc (patch) | |
tree | 8a31d72587892d9f9c0c5712f20f512cfc4f8ced /rpm2archive.c | |
parent | f23af97c4135013d3134a17c881014fb6e9589c8 (diff) | |
download | rpm-57899bd3bfd8f310bde823df81db556b6fd606dc.tar.gz |
Fix recently introduced uninitialized variable warning in rpm2archive
Fixes "warning: ‘rc’ may be used uninitialized in this function"
introduced in commit c73b0f34e32c299c87b7163352808d1071a05d2b.
Diffstat (limited to 'rpm2archive.c')
-rw-r--r-- | rpm2archive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rpm2archive.c b/rpm2archive.c index d0d1e6649..8f97e7020 100644 --- a/rpm2archive.c +++ b/rpm2archive.c @@ -187,7 +187,7 @@ static int process_package(rpmts ts, char * filename) int main(int argc, char *argv[]) { - int rc, i; + int rc = 0, i; xsetprogname(argv[0]); /* Portability call -- see system.h */ rpmReadConfigFiles(NULL, NULL); |