diff options
Diffstat (limited to 'lib/libc/stdio/vasprintf.c')
| -rw-r--r-- | lib/libc/stdio/vasprintf.c | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/libc/stdio/vasprintf.c b/lib/libc/stdio/vasprintf.c index 52cd79791d4..302535071c4 100644 --- a/lib/libc/stdio/vasprintf.c +++ b/lib/libc/stdio/vasprintf.c @@ -1,4 +1,4 @@ -/* $NetBSD: vasprintf.c,v 1.5 1999/09/16 11:45:31 lukem Exp $ */ +/* $NetBSD: vasprintf.c,v 1.6 1999/09/20 04:39:33 lukem Exp $ */ /* * Copyright (c) 1997 Todd C. Miller <Todd.Miller@courtesan.com> @@ -29,7 +29,7 @@ #include <sys/cdefs.h> #if defined(LIBC_SCCS) && !defined(lint) -__RCSID("$NetBSD: vasprintf.c,v 1.5 1999/09/16 11:45:31 lukem Exp $"); +__RCSID("$NetBSD: vasprintf.c,v 1.6 1999/09/20 04:39:33 lukem Exp $"); #endif /* LIBC_SCCS and not lint */ #include <assert.h> @@ -49,12 +49,6 @@ vasprintf(str, fmt, ap) _DIAGASSERT(str != NULL); _DIAGASSERT(fmt != NULL); -#ifdef _DIAGNOSTIC - if (str == NULL || fmt == NULL) { - errno = EFAULT; - return (-1); - } -#endif f._flags = __SWR | __SSTR | __SALC; f._bf._base = f._p = (unsigned char *)malloc(128); |
