diff options
author | Guillem Jover <guillem@debian.org> | 2019-10-02 04:15:24 +0200 |
---|---|---|
committer | Guillem Jover <guillem@debian.org> | 2019-10-30 22:02:48 +0100 |
commit | cdf22e3757608040460329b46db3fad73e159bcd (patch) | |
tree | b273251f4391c41634b0c36bb21a42e44d5c8417 /src | |
parent | 032da9675c087abab819d0346765b874e8daf685 (diff) | |
download | dpkg-cdf22e3757608040460329b46db3fad73e159bcd.tar.gz |
dpkg: Remove redudant condition for sourcefile in updateavailable()
The preceding “if” already checks exclusively whether this variable
is NULL, so in this branch it will always be non-NULL.
Warned-by: cppcheck
Fixes: knownConditionTrueFalse
Diffstat (limited to 'src')
-rw-r--r-- | src/update.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/update.c b/src/update.c index 313f09de9..4a9a95b5b 100644 --- a/src/update.c +++ b/src/update.c @@ -50,7 +50,7 @@ updateavailable(const char *const *argv) case act_avreplace: case act_avmerge: if (sourcefile == NULL) sourcefile = "-"; - else if (sourcefile && argv[1]) + else if (argv[1]) badusage(_("--%s takes at most one Packages-file argument"), cipaction->olong); break; |