diff options
author | Guillem Jover <guillem@debian.org> | 2012-09-12 07:43:16 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2013-04-14 05:50:17 +0200 |
commit | d33cf5c4aaf22345a320f292d2a3205e25986aaf (patch) | |
tree | a141ed6d19d33dca086cf0118df1ce624a90f425 /dpkg-split | |
parent | 08d1abf93b29b9edbedf7353b2c67761b04b3a2b (diff) | |
download | dpkg-d33cf5c4aaf22345a320f292d2a3205e25986aaf.tar.gz |
Avoid assignments in C conditionals
Diffstat (limited to 'dpkg-split')
-rw-r--r-- | dpkg-split/queue.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/dpkg-split/queue.c b/dpkg-split/queue.c index e11cc327a..65cba6987 100644 --- a/dpkg-split/queue.c +++ b/dpkg-split/queue.c @@ -138,7 +138,8 @@ do_auto(const char *const *argv) if (!opt_outputfile) badusage(_("--auto requires the use of the --output option")); - if (!(partfile= *argv++) || *argv) + partfile = *argv++; + if (partfile == NULL || *argv) badusage(_("--auto requires exactly one part file argument")); refi= nfmalloc(sizeof(struct partqueue)); |