summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGuillem Jover <guillem@debian.org>2019-10-02 04:15:24 +0200
committerGuillem Jover <guillem@debian.org>2019-10-30 22:02:48 +0100
commitcdf22e3757608040460329b46db3fad73e159bcd (patch)
treeb273251f4391c41634b0c36bb21a42e44d5c8417 /src
parent032da9675c087abab819d0346765b874e8daf685 (diff)
downloaddpkg-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.c2
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;