From 1180a5300b3bc84c57efa3b5b2ab7fbd21fa65d2 Mon Sep 17 00:00:00 2001 From: Stefan Schmidt Date: Fri, 5 Sep 2014 14:38:36 +0200 Subject: [PATCH] modules/everything: More parentheses fixes for correct logic Without the correctparenthese this would always evaluate to false. CID 1212000, CID 1212001 --- src/modules/everything/evry_history.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/modules/everything/evry_history.c b/src/modules/everything/evry_history.c index 9ae405221..40d804d94 100644 --- a/src/modules/everything/evry_history.c +++ b/src/modules/everything/evry_history.c @@ -271,7 +271,7 @@ evry_history_item_add(Evry_Item *it, const char *ctxt, const char *input) if (!it) return NULL; - if ((!it->plugin->history) && (!CHECK_TYPE(it, EVRY_TYPE_PLUGIN))) + if ((!it->plugin->history) && !(CHECK_TYPE(it, EVRY_TYPE_PLUGIN))) return NULL; if (it->type == EVRY_TYPE_ACTION) @@ -371,7 +371,7 @@ evry_history_item_usage_set(Evry_Item *it, const char *input, const char *ctxt) else it->usage = 0.0; - if ((!it->plugin->history) && (!CHECK_TYPE(it, EVRY_TYPE_PLUGIN))) + if ((!it->plugin->history) && !(CHECK_TYPE(it, EVRY_TYPE_PLUGIN))) return 0; if (it->hi)