mirror of
https://sourceware.org/git/glibc.git
synced 2024-11-23 09:43:32 +08:00
locale/programs/locarchive.c: Remove unnecessary check in add_locale_archive
Since asprintf is called "if (mask & XPG_NORM_CODESET)" there is no point in checking the mask again within the asprintf call. Reviewed-by: Siddhesh Poyarekar <siddhesh@sourceware.org>
This commit is contained in:
parent
e91c7b53c4
commit
a9f806d453
@ -1156,7 +1156,7 @@ add_locale_to_archive (struct locarhandle *ah, const char *name,
|
||||
We will store it in the archive with a normalized name. */
|
||||
asprintf (&normalized_name, "%s%s%s.%s%s%s",
|
||||
language, territory == NULL ? "" : "_", territory ?: "",
|
||||
(mask & XPG_NORM_CODESET) ? normalized_codeset : codeset,
|
||||
normalized_codeset,
|
||||
modifier == NULL ? "" : "@", modifier ?: "");
|
||||
|
||||
/* This call does the main work. */
|
||||
|
Loading…
Reference in New Issue
Block a user