diff options
| author | itojun <itojun@NetBSD.org> | 2000-12-30 04:13:25 +0000 |
|---|---|---|
| committer | itojun <itojun@NetBSD.org> | 2000-12-30 04:13:25 +0000 |
| commit | bb0bfe5b30b5feff2ca72ea69881107d3f31ee5d (patch) | |
| tree | bf930af871f464c805ad638af0b822a6fa76b9e1 /lib/libc/stdio/vfprintf.c | |
| parent | f9d029c7cc5525cc9fbf437d5d555852c9948a53 (diff) | |
initialize mbstate_t properly.
Diffstat (limited to 'lib/libc/stdio/vfprintf.c')
| -rw-r--r-- | lib/libc/stdio/vfprintf.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/libc/stdio/vfprintf.c b/lib/libc/stdio/vfprintf.c index 9ae9955429d..138095d3a4e 100644 --- a/lib/libc/stdio/vfprintf.c +++ b/lib/libc/stdio/vfprintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: vfprintf.c,v 1.34 2000/12/23 13:19:31 itojun Exp $ */ +/* $NetBSD: vfprintf.c,v 1.35 2000/12/30 04:13:25 itojun Exp $ */ /*- * Copyright (c) 1990 The Regents of the University of California. @@ -41,7 +41,7 @@ #if 0 static char *sccsid = "@(#)vfprintf.c 5.50 (Berkeley) 12/16/92"; #else -__RCSID("$NetBSD: vfprintf.c,v 1.34 2000/12/23 13:19:31 itojun Exp $"); +__RCSID("$NetBSD: vfprintf.c,v 1.35 2000/12/30 04:13:25 itojun Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -316,7 +316,7 @@ vfprintf(fp, fmt0, ap) uio.uio_iovcnt = 0; ret = 0; - (void)mbrtowc(NULL, "", 1, &ps); + memset(&ps, 0, sizeof(ps)); /* * Scan the format for conversions (`%' character). |
