From d0d55d09d465844ed3d9cb9ada2507e07365f9a5 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Mon, 9 Jun 2008 05:36:05 +0300 Subject: [PATCH] dpkg-query: Use VARBUF_INIT to initialize path instead of vb Thinko introduced in eb483c17ebb9a47c8b99b4319e682ab685213090. --- ChangeLog | 5 +++++ src/query.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 01a9675a..fd000d02 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2008-06-09 Guillem Jover + + * src/query.c (searchfiles): Use VARBUF_INIT to initialize path + instead of vb. + 2008-06-04 Guillem Jover * src/main.c (setpipe): Set file descriptors to close on exec. diff --git a/src/query.c b/src/query.c index 9ab3e098..9174ca32 100644 --- a/src/query.c +++ b/src/query.c @@ -245,8 +245,8 @@ void searchfiles(const char *const *argv) { struct fileiterator *it; const char *thisarg; int found; - struct varbuf path; - static struct varbuf vb = VARBUF_INIT; + struct varbuf path = VARBUF_INIT; + static struct varbuf vb; if (!*argv) badusage(_("--search needs at least one file name pattern argument")); -- 2.39.5