raster pushed a commit to branch master.
commit d861d10042bc0e1f681ddfa2975e53b523b03628
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date: Sun Aug 18 19:50:01 2013 +0900
setenv - store all strings so they continue to work if putenv is used
---
src/bin/e_utils.c | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/bin/e_utils.c b/src/bin/e_utils.c
index a92949a..ce5f71e 100644
--- a/src/bin/e_utils.c
+++ b/src/bin/e_utils.c
@@ -39,10 +39,7 @@ e_util_env_set(const char *var, const char *val)
char buf[8192];
snprintf(buf, sizeof(buf), "%s=%s", var, val);
- if (getenv(var))
- putenv(buf);
- else
- putenv(strdup(buf));
+ putenv(strdup(buf));
#endif
}
else
--
------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead.
Download for free and get started troubleshooting in minutes.
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk