diff options
author | Frédéric Bérat <fberat@redhat.com> | 2023-04-26 08:30:58 -0400 |
---|---|---|
committer | Siddhesh Poyarekar <siddhesh@sourceware.org> | 2023-04-26 08:32:14 -0400 |
commit | a9f806d4532de2c9124c6caaae88b53ea56cdddd (patch) | |
tree | 48aa1dee40fa340e601140b729be61526abbd09b /locale | |
parent | e91c7b53c4775b789aca801f41ff02c0149c84dc (diff) | |
download | glibc-a9f806d4532de2c9124c6caaae88b53ea56cdddd.tar.gz glibc-a9f806d4532de2c9124c6caaae88b53ea56cdddd.tar.xz glibc-a9f806d4532de2c9124c6caaae88b53ea56cdddd.zip |
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>
Diffstat (limited to 'locale')
-rw-r--r-- | locale/programs/locarchive.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/locale/programs/locarchive.c b/locale/programs/locarchive.c index 87d2d9b1b2..8d7d51af6c 100644 --- a/locale/programs/locarchive.c +++ b/locale/programs/locarchive.c @@ -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. */ |