accept null pointer as message argument to gettext functions
authorpsykose <alice@ayaya.dev>
Wed, 2 Mar 2022 20:16:54 +0000 (21:16 +0100)
committerRich Felker <dalias@aerifal.cx>
Sun, 27 Mar 2022 22:59:15 +0000 (18:59 -0400)
commit01b14242cccb03c411d3eb1437c99da663c95507
treeebbb655ab5fbeaee73b1f1dfef36da08a9cc14ff
parent6d8a515796270eb6cec8a278cb353a078a10f09a
accept null pointer as message argument to gettext functions

the change to support passing null was rejected in the past on the
grounds that GNU gettext documented it as undefined, on an assumption
that only glibc accepted it and that the standalone GNU gettext did
not. but it turned out that both explicitly accept it.

in light of this, since some software assumes null can be passed
safely, allow it.
src/locale/dcngettext.c