ソースを参照

dpkg-query: Use VARBUF_INIT to initialize path instead of vb

Thinko introduced in eb483c17ebb9a47c8b99b4319e682ab685213090.
Guillem Jover 18 年 前
コミット
d0d55d09d4
共有2 個のファイルを変更した7 個の追加2 個の削除を含む
  1. 5 0
      ChangeLog
  2. 2 2
      src/query.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-06-09  Guillem Jover  <guillem@debian.org>
+
+	* src/query.c (searchfiles): Use VARBUF_INIT to initialize path
+	instead of vb.
+
 2008-06-04  Guillem Jover  <guillem@debian.org>
 
 	* src/main.c (setpipe): Set file descriptors to close on exec.

+ 2 - 2
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"));