* fileio.c (Fverify_visited_file_modtime): Don't read uninitialized st.st_size.

This commit is contained in:
Paul Eggert 2012-12-10 15:16:28 -08:00
parent 184246dffc
commit 645c6a30a7
2 changed files with 3 additions and 2 deletions

View file

@ -2,6 +2,7 @@
* fileio.c (Fvisited_file_modtime): Return (-1 ...) for nonexistent
files, fixing a regression from 24.2.
(Fverify_visited_file_modtime): Don't read uninitialized st.st_size.
2012-12-08 Jan Djärv <jan.h.d@swipnet.se>

View file

@ -5150,8 +5150,8 @@ See Info node `(elisp)Modification Time' for more details. */)
? sub_emacs_time (b->modtime, mtime)
: sub_emacs_time (mtime, b->modtime))),
EMACS_TIME_LE (diff, make_emacs_time (1, 0)))))
&& (st.st_size == b->modtime_size
|| b->modtime_size < 0))
&& (b->modtime_size < 0
|| st.st_size == b->modtime_size))
return Qt;
return Qnil;
}