From 7bfa6d7793030944556daeede46dff688465cfd7 Mon Sep 17 00:00:00 2001 From: Andreas Schwab Date: Sun, 25 Jul 2010 20:36:37 +0200 Subject: [PATCH] * callproc.c (set_initial_environment): Avoid unbalanced braces. --- src/ChangeLog | 4 ++++ src/callproc.c | 9 ++++----- 2 files changed, 8 insertions(+), 5 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index f0cc70192b9..0ed773d1acd 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,7 @@ +2010-07-25 Andreas Schwab + + * callproc.c (set_initial_environment): Avoid unbalanced braces. + 2010-07-25 Ken Brown * vm-limit.c (check_memory_limits): Fix previous change; diff --git a/src/callproc.c b/src/callproc.c index 7f72df86ece..7019d741b34 100644 --- a/src/callproc.c +++ b/src/callproc.c @@ -1530,13 +1530,12 @@ void set_initial_environment (void) { register char **envp; -#ifndef CANNOT_DUMP - if (initialized) - { +#ifdef CANNOT_DUMP + Vprocess_environment = Qnil; #else - { - Vprocess_environment = Qnil; + if (initialized) #endif + { for (envp = environ; *envp; envp++) Vprocess_environment = Fcons (build_string (*envp), Vprocess_environment); -- 2.39.2