From 233f125b34de7776f9fed5d748876784ed5fbca6 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Tue, 7 May 2019 16:01:47 +0300 Subject: Fix recently introduced uninitialized variable warning in rpm2archive MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Fixes "warning: ‘rc’ may be used uninitialized in this function" introduced in commit c73b0f34e32c299c87b7163352808d1071a05d2b. (cherry picked from commit 57899bd3bfd8f310bde823df81db556b6fd606dc) --- rpm2archive.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- cgit v1.2.1