From dbf4bb184e29d7f0aca1e119f690552519486567 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Thu, 4 Apr 2013 09:22:40 +0200 Subject: [PATCH] xbps_transaction_remove_pkg: fix uninitialized argument value reported by scan-build. --- lib/transaction_ops.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/transaction_ops.c b/lib/transaction_ops.c index 2ad1e1e7..373d2c95 100644 --- a/lib/transaction_ops.c +++ b/lib/transaction_ops.c @@ -313,7 +313,7 @@ xbps_transaction_remove_pkg(struct xbps_handle *xhp, prop_array_add(unsorted, obj); xbps_dbg_printf(xhp, "%s: added into transaction (remove).\n", pkgver); } - reqby = xbps_pkgdb_get_pkg_revdeps(xhp, pkgver); + reqby = xbps_pkgdb_get_pkg_revdeps(xhp, pkgname); /* * If target pkg is required by any installed pkg, the client must be aware * of this to take appropiate action.