summaryrefslogtreecommitdiff
path: root/lib/libc/stdlib/local.h
diff options
context:
space:
mode:
authortron <tron@NetBSD.org>2010-09-25 18:11:40 +0000
committertron <tron@NetBSD.org>2010-09-25 18:11:40 +0000
commit5cdca2e60020da2dfd58990aada65b6d71aab939 (patch)
treed558847cd606f13e38a295044af4770a0d99a4d0 /lib/libc/stdlib/local.h
parent15ed98d439d987f17cc3d8d7e7a1d20194be0586 (diff)
Remember memory used by allocated environment variables instead of
using a bitmap. This deals with the case where a variable is first set via setenv(3) or putenv(3), then overwritten by changing "environ" directory and afterwards overwritten with setenv(3) again. This stops "zsh" from crashing under NetBSD-current. Code reviewed by Christos Zoulas.
Diffstat (limited to 'lib/libc/stdlib/local.h')
-rw-r--r--lib/libc/stdlib/local.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libc/stdlib/local.h b/lib/libc/stdlib/local.h
index 64c8fb9c99a..a8cd36e7e38 100644
--- a/lib/libc/stdlib/local.h
+++ b/lib/libc/stdlib/local.h
@@ -1,4 +1,4 @@
-/* $NetBSD: local.h,v 1.3 2010/09/23 17:30:49 christos Exp $ */
+/* $NetBSD: local.h,v 1.4 2010/09/25 18:11:40 tron Exp $ */
/*
* Copyright (c) 1997 Christos Zoulas. All rights reserved.
@@ -32,4 +32,4 @@ extern rwlock_t __environ_lock;
#endif
extern char **environ;
-extern bitstr_t *__environ_malloced;
+extern char **__environ_malloced;