summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2013-01-01 22:37:05 +0100
committerFelix Fietkau <nbd@openwrt.org>2013-01-01 22:37:05 +0100
commit86fb2d323eea968b55805459cab497c69b3344b8 (patch)
tree0c39ee4aac614cca19290fed50919cfdf4829c29
parente4f960ca74af4a89743bb5266423b13e3d1b6235 (diff)
fix clearenv() on mac os x
-rw-r--r--utils.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/utils.h b/utils.h
index 0f75de4..0853943 100644
--- a/utils.h
+++ b/utils.h
@@ -42,7 +42,7 @@
static inline void clearenv(void)
{
extern char **environ;
- environ = NULL;
+ *environ = NULL;
}
#endif