diff options
| author | Ken Raeburn <raeburn@raeburn.org> | 2010-05-15 17:16:20 -0400 |
|---|---|---|
| committer | Ken Raeburn <raeburn@raeburn.org> | 2010-05-15 17:16:20 -0400 |
| commit | 8b4eb7969cefe32154d719ac7c3137b1e43b72f9 (patch) | |
| tree | 63354df1dcc01508693b28282863e51a13350bce /src/emacs.c | |
| parent | e45b9e19390a085528f1fc643e8cc1800599ee5f (diff) | |
| download | emacs-8b4eb7969cefe32154d719ac7c3137b1e43b72f9.tar.gz | |
* emacs.c (main): Initialize initial-environment and process-environment
before generating from env, not after.
Diffstat (limited to 'src/emacs.c')
| -rw-r--r-- | src/emacs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/emacs.c b/src/emacs.c index 36db274adf6..c0ef926da75 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -1543,6 +1543,11 @@ main (int argc, char **argv) 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 @@ main (int argc, char **argv) syms_of_callint (); syms_of_casefiddle (); syms_of_casetab (); - syms_of_callproc (); syms_of_category (); syms_of_ccl (); syms_of_character (); |
