| author | Guillem Jover <guillem@debian.org> | |
| Fri, 5 Aug 2011 04:03:02 +0000 (06:03 +0200) | ||
| committer | Guillem Jover <guillem@debian.org> | |
| Fri, 5 Aug 2011 04:41:24 +0000 (06:41 +0200) |
| lib/dpkg/parse.c | patch | blob | history |
diff --git a/lib/dpkg/parse.c b/lib/dpkg/parse.c
--- a/lib/dpkg/parse.c
+++ b/lib/dpkg/parse.c
data = ps.dataptr = ps.endptr = NULL;
}
+ pop_cleanup(ehflag_normaltidy);
+ if (close(fd))
+ ohshite(_("failed to close after read: `%.255s'"), filename);
+
pdone= 0;
/* Loop per package. */
#endif
}
varbuf_destroy(&fs.value);
- pop_cleanup(ehflag_normaltidy);
- if (close(fd)) ohshite(_("failed to close after read: `%.255s'"),filename);
if (donep && !pdone) ohshit(_("no package information in `%.255s'"),filename);
return pdone;
