From: Richard M. Stallman Date: Wed, 3 Sep 1997 20:34:22 +0000 (+0000) Subject: (main): Call run_time_remap earlier, before any use of stdio. X-Git-Tag: emacs-20.1~219 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=d785cf9e4de92f12f76562f4bb42ba681a650410;p=emacs.git (main): Call run_time_remap earlier, before any use of stdio. --- diff --git a/src/emacs.c b/src/emacs.c index 366f7dadaa9..71387f76fc2 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -505,6 +505,11 @@ main (argc, argv, envp) } #endif +#ifdef RUN_TIME_REMAP + if (initialized) + run_time_remap (argv[0]); +#endif + sort_args (argc, argv); if (argmatch (argv, argc, "-version", "--version", 3, NULL, &skip_args)) @@ -615,11 +620,6 @@ main (argc, argv, envp) /* Record (approximately) where the stack begins. */ stack_bottom = &stack_bottom_variable; -#ifdef RUN_TIME_REMAP - if (initialized) - run_time_remap (argv[0]); -#endif - #ifdef USG_SHARED_LIBRARIES if (bss_end) brk ((void *)bss_end);