summaryrefslogtreecommitdiff
path: root/src/emacs.c
diff options
context:
space:
mode:
authorStefan Monnier <monnier@iro.umontreal.ca>2019-01-23 10:56:26 -0500
committerStefan Monnier <monnier@iro.umontreal.ca>2019-01-23 10:56:26 -0500
commit3a0c7b1e60066a10ebe666e24e437918b971d1e2 (patch)
tree376b974f805c2bfb1330ec7a643e0d1a307c39ff /src/emacs.c
parent43cf9b968a1745ae559f8c93db50008d31fcc281 (diff)
downloademacs-3a0c7b1e60066a10ebe666e24e437918b971d1e2.tar.gz
* src/emacs.c (load_pdump): Minor simplification.
Diffstat (limited to 'src/emacs.c')
-rw-r--r--src/emacs.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/emacs.c b/src/emacs.c
index b9f50397241..2738c7ca3f5 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. */