[Bug libc/24018] New: gettext() may return NULL
bruno at clisp dot org
sourceware-bugzilla@sourceware.org
Fri Dec 21 14:58:00 GMT 2018
https://sourceware.org/bugzilla/show_bug.cgi?id=24018
Bug ID: 24018
Summary: gettext() may return NULL
Product: glibc
Version: unspecified
Status: UNCONFIRMED
Severity: normal
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: bruno at clisp dot org
CC: drepper.fsp at gmail dot com
Target Milestone: ---
dcigettext.c line 634 contains the statement
return NULL;
>From the wrong indentation of this line you can already guess that this code
was written in a hurry. And indeed it is buggy: gettext() is not supposed to
return NULL when given a non-NULL argument.
Better replace this line with
goto return_untranslated;
like 4 lines above.
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Glibc-bugs
mailing list