emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] master 3a0c7b1: * src/emacs.c (load_pdump): Minor simplifi


From: Stefan Monnier
Subject: [Emacs-diffs] master 3a0c7b1: * src/emacs.c (load_pdump): Minor simplification.
Date: Wed, 23 Jan 2019 10:56:33 -0500 (EST)

branch: master
commit 3a0c7b1e60066a10ebe666e24e437918b971d1e2
Author: Stefan Monnier <address@hidden>
Commit: Stefan Monnier <address@hidden>

    * src/emacs.c (load_pdump): Minor simplification.
---
 src/emacs.c | 15 ++++++++-------
 1 file changed, 8 insertions(+), 7 deletions(-)

diff --git a/src/emacs.c b/src/emacs.c
index b9f5039..2738c7c 100644
--- a/src/emacs.c
+++ b/src/emacs.c
@@ -732,14 +732,15 @@ load_pdump (int argc, char **argv)
 
   result = PDUMPER_NOT_LOADED;
   if (dump_file)
-    result = pdumper_load (dump_file);
-
-  if (dump_file && result != PDUMPER_LOAD_SUCCESS)
-    fatal ("could not load dump file \"%s\": %s",
-           dump_file, dump_error_to_string (result));
+    {
+      result = pdumper_load (dump_file);
 
-  if (result == PDUMPER_LOAD_SUCCESS)
-    goto out;
+      if (result != PDUMPER_LOAD_SUCCESS)
+        fatal ("could not load dump file \"%s\": %s",
+               dump_file, dump_error_to_string (result));
+      else
+        goto out;
+    }
 
   /* Look for a dump file in the same directory as the executable; it
      should have the same basename.  */



reply via email to

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