From bea146c724afd45152745e3ffe96af609eddd6c8 Mon Sep 17 00:00:00 2001 From: kayvenm Date: Tue, 19 Dec 2017 12:51:53 -0500 Subject: [PATCH] lib/initend.c: Fix user virtual packages Dictionary was never initialized because of wrong condition check Closes: #265 [via git-merge-pr] --- lib/initend.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/initend.c b/lib/initend.c index a6a78921..af8177ce 100644 --- a/lib/initend.c +++ b/lib/initend.c @@ -66,7 +66,7 @@ store_vars(struct xbps_handle *xhp, xbps_dictionary_t *d, if (*d == NULL) *d = xbps_dictionary_create(); - if (xhp->vpkgd_conf) + if (xhp->vpkgd_conf == NULL) xhp->vpkgd_conf = xbps_dictionary_create(); /*