Mercurial > emacs
diff src/emacs.c @ 108603:135d8ad190d8
* emacs.c (main): Initialize initial-environment and process-environment
before generating from env, not after.
author | Ken Raeburn <raeburn@raeburn.org> |
---|---|
date | Sat, 15 May 2010 17:16:20 -0400 |
parents | 786c4a4a3817 |
children | c2ac5cece5ea |
line wrap: on
line diff
--- a/src/emacs.c Sat May 15 17:12:44 2010 -0400 +++ b/src/emacs.c Sat May 15 17:16:20 2010 -0400 @@ -1543,6 +1543,11 @@ ns_init_paths (); #endif + /* Initialize and GC-protect Vinitial_environment and + Vprocess_environment before set_initial_environment fills them + in. */ + if (!initialized) + syms_of_callproc (); /* egetenv is a pretty low-level facility, which may get called in many circumstances; it seems flimsy to put off initializing it until calling init_callproc. */ @@ -1592,7 +1597,6 @@ syms_of_callint (); syms_of_casefiddle (); syms_of_casetab (); - syms_of_callproc (); syms_of_category (); syms_of_ccl (); syms_of_character ();