From 4ed938e77f09c69c832f20f72cdf4fb4fea9af19 Mon Sep 17 00:00:00 2001 From: Michael Schroeder Date: Tue, 30 Jan 2018 13:57:00 +0100 Subject: [PATCH] Allow pool_error to be called with no pool In that case we just return with the specified value and don't log anything. --- src/pool.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/pool.c b/src/pool.c index 1d9eadc0..ba5e799c 100644 --- a/src/pool.c +++ b/src/pool.c @@ -1517,6 +1517,9 @@ pool_error(Pool *pool, int ret, const char *format, ...) { va_list args; int l; + + if (!pool) + return ret; va_start(args, format); if (!pool->errstr) { -- 2.47.2