]> git.eshelyaron.com Git - emacs.git/commit
Initialise unread buffer
authorMattias Engdegård <mattiase@acm.org>
Sun, 19 Sep 2021 14:16:34 +0000 (16:16 +0200)
committerMattias Engdegård <mattiase@acm.org>
Sun, 19 Sep 2021 14:22:29 +0000 (16:22 +0200)
commit5252c45850b3c4a3914f6c94dc163c2c23286bbf
tree84fb4e8f3b2e37a3f0fb2059b47b05c40ebffa7d
parent83508013a8d55bc70dfb716c253c7c4ec8848ab4
Initialise unread buffer

The reader has an extra 1-char unread buffer that was incorrectly
initialised to 0, which means that the first character read would
always be NUL.  As this is often the code that looks for the
lexical-binding cookie, the first loaded source module would be
treated as dynamically bound.  During bootstrapping this is loadup.el
and so its local variables got dumped into the global environment.

* src/lread.c (unread_char): Initialise to empty.
(Fload): Initialise here too just in case.
src/lread.c