Mercurial > hg > xemacs-beta
comparison src/fileio.c @ 3462:6c7605dfcf07
[xemacs-hg @ 2006-06-19 18:19:33 by james]
Fix various problems found by static checkers: use of uninitialized values,
dereferencing pointers before checking whether they are NULL, memory leaks,
and incomplete checking of return values. <m3k67gpyhk.fsf@jerrypc.cs.usu.edu>
author | james |
---|---|
date | Mon, 19 Jun 2006 18:19:38 +0000 |
parents | 902d5bd9b75c |
children | 305157cf3ebb |
comparison
equal
deleted
inserted
replaced
3461:fd2936bbfc5f | 3462:6c7605dfcf07 |
---|---|
2853 | 2853 |
2854 fd = -1; | 2854 fd = -1; |
2855 | 2855 |
2856 if (qxe_stat (XSTRING_DATA (filename), &st) < 0) | 2856 if (qxe_stat (XSTRING_DATA (filename), &st) < 0) |
2857 { | 2857 { |
2858 if (fd >= 0) retry_close (fd); | |
2859 badopen: | 2858 badopen: |
2860 if (NILP (visit)) | 2859 if (NILP (visit)) |
2861 report_file_error ("Opening input file", filename); | 2860 report_file_error ("Opening input file", filename); |
2862 st.st_mtime = -1; | 2861 st.st_mtime = -1; |
2863 goto notfound; | 2862 goto notfound; |