summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/putenv.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/libc/stdlib/putenv.c')
-rw-r--r--lib/libc/stdlib/putenv.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/lib/libc/stdlib/putenv.c b/lib/libc/stdlib/putenv.c
index 0a6cfcbacb1..fb05fdb81cc 100644
--- a/lib/libc/stdlib/putenv.c
+++ b/lib/libc/stdlib/putenv.c
@@ -1,4 +1,4 @@
-/* $NetBSD: putenv.c,v 1.9 1999/09/16 11:45:35 lukem Exp $ */
+/* $NetBSD: putenv.c,v 1.10 1999/09/20 04:39:40 lukem Exp $ */
/*-
* Copyright (c) 1988, 1993
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)putenv.c 8.2 (Berkeley) 3/27/94";
#else
-__RCSID("$NetBSD: putenv.c,v 1.9 1999/09/16 11:45:35 lukem Exp $");
+__RCSID("$NetBSD: putenv.c,v 1.10 1999/09/20 04:39:40 lukem Exp $");
#endif
#endif /* LIBC_SCCS and not lint */
@@ -61,12 +61,6 @@ putenv(str)
int rval;
_DIAGASSERT(str != NULL);
-#ifdef _DIAGNOSTIC
- if (str == NULL) {
- errno = EFAULT;
- return (-1);
- }
-#endif
if ((p = strdup(str)) == NULL)
return (-1);