From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f195.google.com (mail-lj1-f195.google.com [209.85.208.195]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by dev.tarantool.org (Postfix) with ESMTPS id 34BC3469711 for ; Tue, 2 Jun 2020 01:25:35 +0300 (MSK) Received: by mail-lj1-f195.google.com with SMTP id m18so10166865ljo.5 for ; Mon, 01 Jun 2020 15:25:35 -0700 (PDT) From: Cyrill Gorcunov Date: Tue, 2 Jun 2020 01:24:58 +0300 Message-Id: <20200601222507.560415-3-gorcunov@gmail.com> In-Reply-To: <20200601222507.560415-1-gorcunov@gmail.com> References: <20200601222507.560415-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v7 02/11] core/say: use say_logger_initialized in say_logger_free List-Id: Tarantool development patches List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: tml To eliminate opencoded comparision. Reviewed-by: Leonid Vasiliev Signed-off-by: Cyrill Gorcunov --- src/lib/core/say.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/core/say.c b/src/lib/core/say.c index d8f59fb9b..791011e6f 100644 --- a/src/lib/core/say.c +++ b/src/lib/core/say.c @@ -749,7 +749,7 @@ say_logger_init(const char *init_str, int level, int nonblock, void say_logger_free() { - if (log_default == &log_std) + if (say_logger_initialized()) log_destroy(&log_std); } -- 2.26.2