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 0f75de469f9f5678b48e71d863889e2cf298038f..08539438531867edf91b8ede7a77b767b398a9f3 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