From 1ad01b952a01148b26d17c7d0ce730dff7b9dc16 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 24 Feb 2014 11:35:28 +0100 Subject: [PATCH] xbps_transaction_commit: reset var value if binpkg/signature was downloaded successfully. --- lib/transaction_commit.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/transaction_commit.c b/lib/transaction_commit.c index 40adccbc..d13480c0 100644 --- a/lib/transaction_commit.c +++ b/lib/transaction_commit.c @@ -160,6 +160,7 @@ download_binpkgs(struct xbps_handle *xhp, xbps_object_iterator_t iter) free(file); break; } + rv = 0; } /* * Download binary package signature. @@ -181,6 +182,7 @@ download_binpkgs(struct xbps_handle *xhp, xbps_object_iterator_t iter) free(file); break; } + rv = 0; } free(sigfile); if (file != NULL)