From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lj1-f194.google.com (mail-lj1-f194.google.com [209.85.208.194]) (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 217EF469711 for ; Wed, 3 Jun 2020 01:18:46 +0300 (MSK) Received: by mail-lj1-f194.google.com with SMTP id n23so204558ljh.7 for ; Tue, 02 Jun 2020 15:18:46 -0700 (PDT) From: Cyrill Gorcunov Date: Wed, 3 Jun 2020 01:18:07 +0300 Message-Id: <20200602221817.645015-3-gorcunov@gmail.com> In-Reply-To: <20200602221817.645015-1-gorcunov@gmail.com> References: <20200602221817.645015-1-gorcunov@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Subject: [Tarantool-patches] [PATCH v8 02/12] 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 Reviewed-by: Oleg Babin 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