From b0fcdf175913a4bb59a12d840156deaf21ef7781 Mon Sep 17 00:00:00 2001 From: "Carsten Haitzler (Rasterman)" Date: Tue, 4 Jun 2019 07:14:01 +0100 Subject: [PATCH] e start - use static env vars when they are actually static this avoids any possible leaks from these and uses less heap. --- src/bin/e_start_main.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bin/e_start_main.c b/src/bin/e_start_main.c index 18d4cebbd..6a762b75a 100644 --- a/src/bin/e_start_main.c +++ b/src/bin/e_start_main.c @@ -600,7 +600,7 @@ main(int argc, char **argv) prefix_determine(argv[0]); env_set("E_START", argv[0]); - env_set("E_START_MANAGER", "1"); + putenv("E_START_MANAGER=1"); for (i = 1; i < argc; i++) { @@ -724,7 +724,7 @@ main(int argc, char **argv) return _e_start_child(args, really_know); /* in the parent - ptrace attach and continue */ - env_set("E_RESTART", "1"); + putenv("E_RESTART=1"); _e_ptrace_attach(child, &status, really_know); /* now loop until done */