]> git.eshelyaron.com Git - emacs.git/commitdiff
(main): Call run_time_remap earlier, before any use of stdio.
authorRichard M. Stallman <rms@gnu.org>
Wed, 3 Sep 1997 20:34:22 +0000 (20:34 +0000)
committerRichard M. Stallman <rms@gnu.org>
Wed, 3 Sep 1997 20:34:22 +0000 (20:34 +0000)
src/emacs.c

index 366f7dadaa9eeea05dc0908676114f2a6da4697d..71387f76fc2b3414e289ca43a7cfd662ea44d09a 100644 (file)
@@ -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);