From 428613f0d607a75fa9271dee2c79baba98b02b98 Mon Sep 17 00:00:00 2001 From: Ruben Kerkhof Date: Sat, 23 Apr 2016 11:39:47 +0200 Subject: [PATCH] memcachec plugin: prev can't be NULL here [src/memcachec.c:392] -> [src/memcachec.c:390]: (warning) Either the condition 'prev!=0' is redundant or there is possible null pointer dereference: prev. --- src/memcachec.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/memcachec.c b/src/memcachec.c index 1e1d42dc..629b99ba 100644 --- a/src/memcachec.c +++ b/src/memcachec.c @@ -387,7 +387,7 @@ static int cmc_config_add_page (oconfig_item_t *ci) /* {{{ */ web_page_t *prev; prev = pages_g; - while ((prev != NULL) && (prev->next != NULL)) + while (prev->next != NULL) prev = prev->next; prev->next = page; } -- 2.30.2