]> git.eshelyaron.com Git - emacs.git/commitdiff
* src/emacs.c (load_pdump): Minor simplification.
authorStefan Monnier <monnier@iro.umontreal.ca>
Wed, 23 Jan 2019 15:56:26 +0000 (10:56 -0500)
committerStefan Monnier <monnier@iro.umontreal.ca>
Wed, 23 Jan 2019 15:56:26 +0000 (10:56 -0500)
src/emacs.c

index b9f503972416a711524c98be1167d928f6f91b2a..2738c7ca3f520c813af486a046aaaa31cd82a87f 100644 (file)
@@ -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.  */