summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/pdumper.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pdumper.c b/src/pdumper.c
index fbf17d1629e..f459d971c35 100644
--- a/src/pdumper.c
+++ b/src/pdumper.c
@@ -4025,6 +4025,12 @@ types. */)
Lisp_Object symbol = intern ("command-line-processed");
specbind (symbol, Qnil);
+ /* Reset process-environment -- this is for when they re-dump a
+ pdump-restored emacs, since set_initial_environment wants always
+ to cons it from scratch. */
+ Vprocess_environment = Qnil;
+ garbage_collect ();
+
CHECK_STRING (filename);
filename = Fexpand_file_name (filename, Qnil);
filename = ENCODE_FILE (filename);