diff options
| author | Stefan Monnier | 2019-01-23 10:56:26 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2019-01-23 10:56:26 -0500 |
| commit | 3a0c7b1e60066a10ebe666e24e437918b971d1e2 (patch) | |
| tree | 376b974f805c2bfb1330ec7a643e0d1a307c39ff /src | |
| parent | 43cf9b968a1745ae559f8c93db50008d31fcc281 (diff) | |
| download | emacs-3a0c7b1e60066a10ebe666e24e437918b971d1e2.tar.gz emacs-3a0c7b1e60066a10ebe666e24e437918b971d1e2.zip | |
* src/emacs.c (load_pdump): Minor simplification.
Diffstat (limited to 'src')
| -rw-r--r-- | src/emacs.c | 15 |
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) | |||
| 732 | 732 | ||
| 733 | result = PDUMPER_NOT_LOADED; | 733 | result = PDUMPER_NOT_LOADED; |
| 734 | if (dump_file) | 734 | if (dump_file) |
| 735 | result = pdumper_load (dump_file); | 735 | { |
| 736 | 736 | result = pdumper_load (dump_file); | |
| 737 | if (dump_file && result != PDUMPER_LOAD_SUCCESS) | ||
| 738 | fatal ("could not load dump file \"%s\": %s", | ||
| 739 | dump_file, dump_error_to_string (result)); | ||
| 740 | 737 | ||
| 741 | if (result == PDUMPER_LOAD_SUCCESS) | 738 | if (result != PDUMPER_LOAD_SUCCESS) |
| 742 | goto out; | 739 | fatal ("could not load dump file \"%s\": %s", |
| 740 | dump_file, dump_error_to_string (result)); | ||
| 741 | else | ||
| 742 | goto out; | ||
| 743 | } | ||
| 743 | 744 | ||
| 744 | /* Look for a dump file in the same directory as the executable; it | 745 | /* Look for a dump file in the same directory as the executable; it |
| 745 | should have the same basename. */ | 746 | should have the same basename. */ |