From a4f09edc1eb8a673cb1d953aeded7ac0b1295859 Mon Sep 17 00:00:00 2001 From: Pavel Shlyak Date: Sun, 23 Dec 2018 18:44:09 +0300 Subject: 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 --- src/main.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */ -- cgit v1.2.3