fix clearenv() on mac os x
[project/uhttpd.git] / 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