about summary refs log tree commit diff
path: root/stdlib/mblen.c
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2000-04-07 16:45:34 +0000
committerUlrich Drepper <drepper@redhat.com>2000-04-07 16:45:34 +0000
commitb837918ee117012a5db016ea4f66196554d6f947 (patch)
tree1ded869acdace30988e0ac0f07fd4dbaf874eab2 /stdlib/mblen.c
parent404ee5fc7966af3b464c55e84bc4a956557117fe (diff)
downloadglibc-b837918ee117012a5db016ea4f66196554d6f947.tar.gz
glibc-b837918ee117012a5db016ea4f66196554d6f947.tar.xz
glibc-b837918ee117012a5db016ea4f66196554d6f947.zip
Update.
	* stdio-common/printf-parse.h: Likewise.
Diffstat (limited to 'stdlib/mblen.c')
-rw-r--r--stdlib/mblen.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/stdlib/mblen.c b/stdlib/mblen.c
index 760da60d73..429048c99c 100644
--- a/stdlib/mblen.c
+++ b/stdlib/mblen.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1991, 1997, 1998, 1999 Free Software Foundation, Inc.
+/* Copyright (C) 1991, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -53,8 +53,7 @@ mblen (const char *s, size_t n)
     result = 0;
   else
     {
-      state.count = 0;
-      state.value = 0;
+      memset (&state, '\0', sizeof state);
 
       result = __mbrtowc (NULL, s, n, &state);