Skip to content

Commit

Permalink
locale.c: Don't over allocate array
Browse files Browse the repository at this point in the history
This previously added an extraneous unused element.
  • Loading branch information
khwilliamson committed May 12, 2023
1 parent ed8b33d commit 9e08477
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion locale.c
Expand Up @@ -7957,7 +7957,7 @@ Perl_switch_to_global_locale(pTHX)

# else /* Must be USE_POSIX_2008_LOCALE) */

const char * cur_thread_locales[LC_ALL_INDEX_ + 1];
const char * cur_thread_locales[LC_ALL_INDEX_];

/* Save each category's current per-thread state */
for (unsigned i = 0; i < LC_ALL_INDEX_; i++) {
Expand Down

0 comments on commit 9e08477

Please sign in to comment.