We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d3a0c7 commit 818cdb7Copy full SHA for 818cdb7
locale.c
@@ -1696,13 +1696,13 @@ S_new_numeric(pTHX_ const char *newnum)
1696
* such platforms.
1697
*/
1698
1699
-
1700
- /* Save the new name if it isn't the same as the previous one, if any */
1701
- if (strNE(PL_numeric_name, newnum)) {
1702
- Safefree(PL_numeric_name);
1703
- PL_numeric_name = savepv(newnum);
+ if (strEQ(PL_numeric_name, newnum)) {
+ return;
1704
}
1705
+ Safefree(PL_numeric_name);
+ PL_numeric_name = savepv(newnum);
+
1706
/* We are in the underlying locale until changed at the end of this
1707
* function */
1708
PL_numeric_underlying = TRUE;
0 commit comments