Browse Source

libdpkg: Do not set the type to 'field' in parseformat

This information is already set in parsefield.
Guillem Jover 18 years ago
parent
commit
35b93f6961
2 changed files with 6 additions and 1 deletions
  1. 5 0
      ChangeLog
  2. 1 1
      lib/showpkg.c

+ 5 - 0
ChangeLog

@@ -1,3 +1,8 @@
+2008-07-26  Guillem Jover  <guillem@debian.org>
+
+	* lib/showpkg.c (parseformat): Do not set cur->type to field, as
+	that's set in parsefield.
+
 2008-07-22  Guillem Jover  <guillem@debian.org>
 
 	* src/Makefile.am (dpkg_SOURCES): Add 'pkg-list.c'.

+ 1 - 1
lib/showpkg.c

@@ -158,7 +158,7 @@ struct lstitem* parseformat(const char* fmt) {
 				freeformat(head);
 				return NULL;
 			}
-			cur->type=field;
+
 			if (!parsefield(cur, fmt+2, fmtend-1)) {
 				freeformat(head);
 				return NULL;