From d785cf9e4de92f12f76562f4bb42ba681a650410 Mon Sep 17 00:00:00 2001 From: "Richard M. Stallman" Date: Wed, 3 Sep 1997 20:34:22 +0000 Subject: [PATCH] (main): Call run_time_remap earlier, before any use of stdio. --- src/emacs.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); -- 2.39.2