raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=b0fcdf175913a4bb59a12d840156deaf21ef7781

commit b0fcdf175913a4bb59a12d840156deaf21ef7781
Author: Carsten Haitzler (Rasterman) <[email protected]>
Date:   Tue Jun 4 07:14:01 2019 +0100

    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 */

-- 


Reply via email to