From b91ba58bbe7fcf62295cecf1976b5c6b2763c2cf Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Wed, 11 Sep 2019 21:32:01 +0200 Subject: [PATCH] Fix compilation with clang on ArchLinux * lib/gettext.h: Remove useless use of NULL. --- lib/gettext.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/gettext.h b/lib/gettext.h index c7c0fdb53..bb5b67072 100644 --- a/lib/gettext.h +++ b/lib/gettext.h @@ -231,7 +231,7 @@ dcpgettext_expr (const char *domain, (msgctxt_len + msgid_len <= sizeof (buf) ? buf : (char *) malloc (msgctxt_len + msgid_len)); - if (msg_ctxt_id != NULL) + if (msg_ctxt_id) #endif { int found_translation; @@ -279,7 +279,7 @@ dcnpgettext_expr (const char *domain, (msgctxt_len + msgid_len <= sizeof (buf) ? buf : (char *) malloc (msgctxt_len + msgid_len)); - if (msg_ctxt_id != NULL) + if (msg_ctxt_id) #endif { int found_translation;