From 6a9e394a6050ac732181ac37f0d7116efeba86ae Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 12 Jun 2013 04:48:36 +0200 Subject: [PATCH] xbps-query(8): extend 734a2c3 to also match with pkgpatterns. --- bin/xbps-query/show-deps.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/bin/xbps-query/show-deps.c b/bin/xbps-query/show-deps.c index 48163681..b68c151f 100644 --- a/bin/xbps-query/show-deps.c +++ b/bin/xbps-query/show-deps.c @@ -195,14 +195,15 @@ repo_show_pkg_revdeps(struct xbps_handle *xhp, const char *pkg) vpkgn = xbps_pkg_name(buf); assert(vpkgn); - free(buf); if (strcmp(vpkgn, pkg)) { free(vpkgn); + free(buf); continue; } free(vpkgn); rv = xbps_rpool_foreach(xhp, repo_revdeps_cb, - __UNCONST(vpkg)); + __UNCONST(buf)); + free(buf); if (rv == EEXIST) { rv = 0; matched = true;