Skip to content

Commit

Permalink
intrpvar.h: Initialize a variable
Browse files Browse the repository at this point in the history
I don't believe there is a bug with this PL_numeric_name being
uninitialized, but this is an easy precaution.
  • Loading branch information
khwilliamson committed May 5, 2021
1 parent abf84d1 commit 1f5b22f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion intrpvar.h
Expand Up @@ -803,7 +803,9 @@ PERLVARI(I, numeric_underlying_is_standard, bool, TRUE)

PERLVARI(I, numeric_standard, int, TRUE)
/* Assume C locale numerics */
PERLVAR(I, numeric_name, const char *) /* Name of current numeric locale */
/* Name of current numeric locale */
PERLVARI(I, numeric_name, const char *, NULL)

PERLVAR(I, numeric_radix_sv, SV *) /* The radix separator if not '.' */

#ifdef USE_LOCALE_CTYPE
Expand Down

0 comments on commit 1f5b22f

Please sign in to comment.