summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2015-01-26 17:05:18 +0100
committerGuillem Jover <guillem@debian.org>2015-01-28 20:50:33 +0100
commit8c5be590854ff613ed234dcc8d1d24d7ed638626 (patch)
treecb776d66d5aab80cac9e410cd90a487e5dd0df26 /lib
parentdbafc0431b45fca65ee2a4b2fff40fed918d1d23 (diff)
downloaddpkg-8c5be590854ff613ed234dcc8d1d24d7ed638626.tar.gz
libdpkg: Remove unneeded braces in if statement
Diffstat (limited to 'lib')
-rw-r--r--lib/dpkg/tarfn.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/dpkg/tarfn.c b/lib/dpkg/tarfn.c
index e22518528..3837050bf 100644
--- a/lib/dpkg/tarfn.c
+++ b/lib/dpkg/tarfn.c
@@ -182,18 +182,16 @@ tar_header_decode(struct tar_header *h, struct tar_entry *d)
d->dev = makedev(OtoM(h->devmajor, sizeof(h->devmajor)),
OtoM(h->devminor, sizeof(h->devminor)));
- if (*h->user) {
+ if (*h->user)
d->stat.uname = m_strndup(h->user, sizeof(h->user));
- } else {
+ else
d->stat.uname = NULL;
- }
d->stat.uid = (uid_t)OtoM(h->uid, sizeof(h->uid));
- if (*h->group) {
+ if (*h->group)
d->stat.gname = m_strndup(h->group, sizeof(h->group));
- } else {
+ else
d->stat.gname = NULL;
- }
d->stat.gid = (gid_t)OtoM(h->gid, sizeof(h->gid));
checksum = OtoM(h->checksum, sizeof(h->checksum));