]> git.eshelyaron.com Git - emacs.git/commitdiff
Unbreak interactive invocation of temacs on MS-Windows
authorEli Zaretskii <eliz@gnu.org>
Wed, 6 Feb 2019 15:56:44 +0000 (17:56 +0200)
committerEli Zaretskii <eliz@gnu.org>
Wed, 6 Feb 2019 15:56:44 +0000 (17:56 +0200)
* src/emacs.c (main) [WINDOWSNT]: Allow to invoke temacs
interactively without the --temacs= option.

src/emacs.c

index 869b5307f2354b3d4a86aefdb444323ce33b5730..9277399618414bc11e11e5dc2af4fba915d97324 100644 (file)
@@ -915,10 +915,10 @@ main (int argc, char **argv)
      temacs and only if we are going to dump with unexec.  */
   bool use_dynamic_heap = false;
   char *temacs_str = strstr (argv[0], "temacs");
-  if (temacs_str != NULL
+  if (temacs
+      && temacs_str != NULL
       && (temacs_str == argv[0] || IS_DIRECTORY_SEP (temacs_str[-1])))
     {
-      eassert (temacs);
       /* Note that gflags are set at this point only if we have been
         called with the --temacs=METHOD option.  We assume here that
         temacs is always called that way, otherwise the functions