fix clearenv() on mac os x
authorFelix Fietkau <nbd@openwrt.org>
Tue, 1 Jan 2013 21:37:05 +0000 (22:37 +0100)
committerFelix Fietkau <nbd@openwrt.org>
Tue, 1 Jan 2013 21:37:05 +0000 (22:37 +0100)
utils.h

diff --git a/utils.h b/utils.h
index 0f75de4..0853943 100644 (file)
--- a/utils.h
+++ b/utils.h
@@ -42,7 +42,7 @@
 static inline void clearenv(void)
 {
        extern char **environ;
-       environ = NULL;
+       *environ = NULL;
 }
 #endif