]> git.eshelyaron.com Git - emacs.git/commitdiff
Pacify -Wjump-misses-init
authorPaul Eggert <eggert@cs.ucla.edu>
Fri, 16 Feb 2018 00:08:16 +0000 (16:08 -0800)
committerDaniel Colascione <dancol@dancol.org>
Fri, 16 Feb 2018 00:08:43 +0000 (16:08 -0800)
src/emacs.c

index 0d7c6ed9b39dc95bf813d9d8635e3af5137a23a2..7ed4f2758e23f1a729958ffd3802120381039849 100644 (file)
@@ -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.  */