summaryrefslogtreecommitdiff
path: root/locale.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2021-04-15 09:13:28 -0600
committerKarl Williamson <khw@cpan.org>2021-04-15 09:17:22 -0600
commita16bc7c90b69db2b86100bc193be62d92e1167d4 (patch)
tree4e0b09679f57f575ea941012e68fc91ca15fe92d /locale.c
parentb85af0abadb53653ba40bafefa713b7739ea98fa (diff)
downloadperl-a16bc7c90b69db2b86100bc193be62d92e1167d4.tar.gz
locale.c: Use memzero, instead of memset(0)
Clearer to use the more direct operation
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 8d67a3d7ae..eb6590f598 100644
--- a/locale.c
+++ b/locale.c
@@ -4719,7 +4719,7 @@ Perl__is_cur_LC_category_utf8(pTHX_ int category)
# if defined(HAS_MBRTOWC) && defined(USE_ITHREADS)
/* Prefer this function if available, as it's reentrant */
- memset(&ps, 0, sizeof(ps));;
+ memzero(&ps, sizeof(ps));;
PERL_UNUSED_RESULT(mbrtowc(&wc, NULL, 0, &ps)); /* Reset any shift
state */
SETERRNO(0, 0);