Fix compilation with clang on ArchLinux

* lib/gettext.h: Remove useless use of NULL.
This commit is contained in:
Alexandre Duret-Lutz 2019-09-11 21:32:01 +02:00
parent c1d6d13d6e
commit b91ba58bbe

View file

@ -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;