summaryrefslogtreecommitdiff
path: root/miscutils/crond.c
diff options
context:
space:
mode:
authorDenys Vlasenko2017-07-22 02:25:47 +0200
committerDenys Vlasenko2017-07-22 02:25:47 +0200
commitbbf17bbf326c7157ca237b9659472ddf7626e68d (patch)
tree95450d50a1931a6b13f941cdf3deb036506148df /miscutils/crond.c
parentef0366eb4f02bb0cda359b977fdbdfa7c145f76f (diff)
downloadbusybox-bbf17bbf326c7157ca237b9659472ddf7626e68d.zip
busybox-bbf17bbf326c7157ca237b9659472ddf7626e68d.tar.gz
crond: do not assume setenv() does not leak
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
Diffstat (limited to 'miscutils/crond.c')
-rw-r--r--miscutils/crond.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/miscutils/crond.c b/miscutils/crond.c
index cf33230..5ae0ff0 100644
--- a/miscutils/crond.c
+++ b/miscutils/crond.c
@@ -79,9 +79,9 @@
#include "common_bufsiz.h"
#include <syslog.h>
-/* glibc frees previous setenv'ed value when we do next setenv()
- * of the same variable. uclibc does not do this! */
-#if (defined(__GLIBC__) && !defined(__UCLIBC__)) /* || OTHER_SAFE_LIBC... */
+#if 0
+/* If libc tracks and reuses setenv()-allocated memory, ok to set this to 0 */
+/* Neither glibc nor uclibc do that! */
# define SETENV_LEAKS 0
#else
# define SETENV_LEAKS 1