This is a live mirror of the Perl 5 development currently hosted at
https://github.com/perl/perl5
https://perl5.git.perl.org
/
perl5.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
locale.c: Slight refactor
[perl5.git]
/
locale.c
diff --git
a/locale.c
b/locale.c
index
99d42e0
..
d31db26
100644
(file)
--- a/
locale.c
+++ b/
locale.c
@@
-3490,14
+3490,12
@@
Perl_my_strerror(pTHX_ const int errnum)
/* This function is trivial if we have strerror_l() */
if (within_locale_scope) {
/* This function is trivial if we have strerror_l() */
if (within_locale_scope) {
- errstr = s
trerror(errnum
);
+ errstr = s
avepv(strerror(errnum)
);
}
else {
}
else {
- errstr = s
trerror_l(errnum, PL_C_locale_obj
);
+ errstr = s
avepv(strerror_l(errnum, PL_C_locale_obj)
);
}
}
- errstr = savepv(errstr);
-
# else /* Doesn't have strerror_l(). */
# ifdef USE_POSIX_2008_LOCALE
# else /* Doesn't have strerror_l(). */
# ifdef USE_POSIX_2008_LOCALE