Commit b7b0cc70 authored by Eli Zaretskii's avatar Eli Zaretskii

Unbreak interactive invocation of temacs on MS-Windows

* src/emacs.c (main) [WINDOWSNT]: Allow to invoke temacs
interactively without the --temacs= option.
parent a03de1e2
Pipeline #704 passed with stage
in 53 minutes and 45 seconds
......@@ -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
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment