summaryrefslogtreecommitdiff
path: root/src/main.c
diff options
context:
space:
mode:
authorPavel Shlyak <shlyak-pavel2011@ya.ru>2018-12-23 18:44:09 +0300
committerGitHub <noreply@github.com>2018-12-23 18:44:09 +0300
commita4f09edc1eb8a673cb1d953aeded7ac0b1295859 (patch)
treeb58ba5926c84e1e298ee05631822ab677f27859c /src/main.c
parentc2efc3491979a9fadcc32496c319ebefcb2a8301 (diff)
There is no need to test ft against null
ft is already checked on line 153 so this condition is useless. Check https://github.com/derf/feh/issues/440 for more details
Diffstat (limited to 'src/main.c')
-rw-r--r--src/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main.c b/src/main.c
index ded0b22..87cf7c4 100644
--- a/src/main.c
+++ b/src/main.c
@@ -183,7 +183,7 @@ int feh_main_iteration(int block)
&& ((errno == ENOMEM) || (errno == EINVAL)
|| (errno == EBADF)))
eprintf("Connection to X display lost");
- if ((ft) && (count == 0)) {
+ if (count == 0) {
/* This means the timer is due to be executed. If count was > 0,
that would mean an X event had woken us, we're not interested
in that */