summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/rpmgi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rpmgi.c b/lib/rpmgi.c
index f4e144316..ed1a74539 100644
--- a/lib/rpmgi.c
+++ b/lib/rpmgi.c
@@ -456,7 +456,7 @@ rpmgi rpmgiNew(rpmts ts, rpmTag tag, const void * keyp, size_t keylen)
gi->tsi = NULL;
gi->mi = NULL;
gi->fd = NULL;
- gi->argv = xcalloc(1, sizeof(*gi->argv));
+ gi->argv = argvNew();
gi->argc = 0;
gi->ftsOpts = 0;
gi->ftsp = NULL;