diff options
| author | mycroft <mycroft@NetBSD.org> | 2000-01-21 19:51:36 +0000 |
|---|---|---|
| committer | mycroft <mycroft@NetBSD.org> | 2000-01-21 19:51:36 +0000 |
| commit | 442e96d2302b5bc33d54817d451d0cc7414dccf2 (patch) | |
| tree | 8b70c3ca9605413bfc6514c3e539367e0eb6a410 /lib/libc/stdio/vsprintf.c | |
| parent | 2d0426d8d2a7ac9959e4095cfb4c011df2dc9c06 (diff) | |
Initialize f._file for locking primitives.
Diffstat (limited to 'lib/libc/stdio/vsprintf.c')
| -rw-r--r-- | lib/libc/stdio/vsprintf.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/lib/libc/stdio/vsprintf.c b/lib/libc/stdio/vsprintf.c index 21947e62c5e..70f422d3a64 100644 --- a/lib/libc/stdio/vsprintf.c +++ b/lib/libc/stdio/vsprintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: vsprintf.c,v 1.9 1999/09/20 04:39:34 lukem Exp $ */ +/* $NetBSD: vsprintf.c,v 1.10 2000/01/21 19:51:40 mycroft Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -41,7 +41,7 @@ #if 0 static char sccsid[] = "@(#)vsprintf.c 8.1 (Berkeley) 6/4/93"; #else -__RCSID("$NetBSD: vsprintf.c,v 1.9 1999/09/20 04:39:34 lukem Exp $"); +__RCSID("$NetBSD: vsprintf.c,v 1.10 2000/01/21 19:51:40 mycroft Exp $"); #endif #endif /* LIBC_SCCS and not lint */ @@ -62,6 +62,7 @@ vsprintf(str, fmt, ap) _DIAGASSERT(str != NULL); _DIAGASSERT(fmt != NULL); + f._file = -1; f._flags = __SWR | __SSTR; f._bf._base = f._p = (unsigned char *)str; f._bf._size = f._w = INT_MAX; |
