emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] pdumper 343ac5e 1/4: Pacify -Wjump-misses-init


From: Daniel Colascione
Subject: [Emacs-diffs] pdumper 343ac5e 1/4: Pacify -Wjump-misses-init
Date: Thu, 15 Feb 2018 19:17:39 -0500 (EST)

branch: pdumper
commit 343ac5e7a2218e5a2a7f188ac5b9b20dbcb0a636
Author: Paul Eggert <address@hidden>
Commit: Daniel Colascione <address@hidden>

    Pacify -Wjump-misses-init
---
 src/emacs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/emacs.c b/src/emacs.c
index 0d7c6ed..7ed4f27 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.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]