summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-06-06 14:43:04 -0600
committerKarl Williamson <khw@cpan.org>2014-06-07 10:24:59 -0600
commit8ee4b76954b91d3bb381880248e4b3e0fa5e65d5 (patch)
tree45ad9498343611ce04885d6f973de1e35c69b5f3 /locale.c
parent2376ab1f7929a7a9f33c6ed28ac0f7c3361894c2 (diff)
downloadperl-8ee4b76954b91d3bb381880248e4b3e0fa5e65d5.tar.gz
locale.c: Fix uncomplemented 'if' test
Somehow the ! in this if () got dropped, and there were no tests to catch it. Now both are remedied.
Diffstat (limited to 'locale.c')
-rw-r--r--locale.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/locale.c b/locale.c
index 0ecce3cebb..64c0d8d6f1 100644
--- a/locale.c
+++ b/locale.c
@@ -1414,7 +1414,7 @@ Perl_my_strerror(pTHX_ const int errnum) {
* LC_MESSAGES */
#ifdef USE_LOCALE_MESSAGES
- if (IN_LC(LC_MESSAGES)) {
+ if (! IN_LC(LC_MESSAGES)) {
char * save_locale = setlocale(LC_MESSAGES, NULL);
if (! ((*save_locale == 'C' && save_locale[1] == '\0')
|| strEQ(save_locale, "POSIX")))