summaryrefslogtreecommitdiff
path: root/dpkg-deb/info.c
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2012-03-31 21:55:05 +0200
committerGuillem Jover <guillem@debian.org>2012-04-01 10:16:24 +0200
commit6431c053b78533afafb1193e1dc66391580e6eaf (patch)
tree93b145949cfaf6ea1ab14e1df291c37a0962b9f3 /dpkg-deb/info.c
parent8ae0d0184d3f15ee1edc564d074f682a50f51730 (diff)
downloaddpkg-6431c053b78533afafb1193e1dc66391580e6eaf.tar.gz
Use cmp() == 0 instead of !cmp()
Diffstat (limited to 'dpkg-deb/info.c')
-rw-r--r--dpkg-deb/info.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dpkg-deb/info.c b/dpkg-deb/info.c
index 5c1a1531f..53eb4cf7a 100644
--- a/dpkg-deb/info.c
+++ b/dpkg-deb/info.c
@@ -240,7 +240,7 @@ info_field(const char *debar, const char *dir, const char *const *fields,
*pf = '\0';
doing= fnl >= MAXFIELDNAME || c=='\n' || c==EOF;
for (fp=fields; !doing && *fp; fp++)
- if (!strcasecmp(*fp, fieldname))
+ if (strcasecmp(*fp, fieldname) == 0)
doing = true;
if (showfieldname) {
if (doing)