From: Paul Eggert Date: Fri, 16 Feb 2018 00:08:16 +0000 (-0800) Subject: Pacify -Wjump-misses-init X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=343ac5e7a2218e5a2a7f188ac5b9b20dbcb0a636;p=emacs.git Pacify -Wjump-misses-init --- diff --git a/src/emacs.c b/src/emacs.c index 0d7c6ed9b39..7ed4f2758e2 100644 --- a/src/emacs.c +++ b/src/emacs.c @@ -748,6 +748,7 @@ load_dump (int *inout_argc, /* Look for an explicitly-specified dump file. */ + const char *path_exec = PATH_EXEC; char *dump_file = find_and_remove_dump_file_argument (&argc, &argv); if (initialized && dump_file) /* TODO: maybe more thoroughly scrub process environment in order @@ -797,7 +798,6 @@ load_dump (int *inout_argc, FIXME: this doesn't work with emacs-XX.YY.ZZ.pdmp versioned files. */ argv0_base = "emacs"; - const char *path_exec = PATH_EXEC; #ifdef WINDOWSNT /* On MS-Windows, PATH_EXEC normally starts with a literal "%emacs_dir%", so it will never work without some tweaking. */