diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2019-05-07 16:01:47 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2020-03-26 11:57:58 +0200 |
commit | 233f125b34de7776f9fed5d748876784ed5fbca6 (patch) | |
tree | edb46aac55e7795ee47b20b31484d988b0a7505d | |
parent | 35be021dbce5a8c6c05198fbb97ade2ad47abcf3 (diff) | |
download | rpm-233f125b34de7776f9fed5d748876784ed5fbca6.tar.gz |
Fix recently introduced uninitialized variable warning in rpm2archive
Fixes "warning: ‘rc’ may be used uninitialized in this function"
introduced in commit c73b0f34e32c299c87b7163352808d1071a05d2b.
(cherry picked from commit 57899bd3bfd8f310bde823df81db556b6fd606dc)
-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); |