xbps_transaction_commit: reset var value if binpkg/signature was downloaded successfully.

This commit is contained in:
Juan RP 2014-02-24 11:35:28 +01:00
parent 4d38311fbe
commit 1ad01b952a

View File

@ -160,6 +160,7 @@ download_binpkgs(struct xbps_handle *xhp, xbps_object_iterator_t iter)
free(file); free(file);
break; break;
} }
rv = 0;
} }
/* /*
* Download binary package signature. * Download binary package signature.
@ -181,6 +182,7 @@ download_binpkgs(struct xbps_handle *xhp, xbps_object_iterator_t iter)
free(file); free(file);
break; break;
} }
rv = 0;
} }
free(sigfile); free(sigfile);
if (file != NULL) if (file != NULL)