Mercurial > hg > xemacs-beta
diff src/dumper.c @ 5837:09b5be18ba0e
fdopen returns NULL when it fails.
author | Marcus Crestani <marcus@crestani.de> |
---|---|
date | Sat, 13 Dec 2014 13:58:16 +0100 |
parents | 86d33ddc7fd6 |
children | b1500f1ec617 |
line wrap: on
line diff
--- a/src/dumper.c Mon Dec 08 16:27:09 2014 -0700 +++ b/src/dumper.c Sat Dec 13 13:58:16 2014 +0100 @@ -2135,7 +2135,7 @@ report_file_error ("Unable to open dump file", build_ascstring (EMACS_PROGNAME ".dmp")); pdump_out = fdopen (pdump_fd, "w"); - if (pdump_out < 0) + if (pdump_out == NULL) report_file_error ("Unable to open dump file for writing", build_ascstring (EMACS_PROGNAME ".dmp"));