summaryrefslogtreecommitdiff
path: root/src/keyboard.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2011-04-16 13:27:04 -0700
committerPaul Eggert <eggert@cs.ucla.edu>2011-04-16 13:27:04 -0700
commitcad590324875d0ca862ced3421d220600b9f77d2 (patch)
treeaa12770472f75592d1dffa3b5883fcaf5ddae575 /src/keyboard.c
parentc339dc2e7e86248a60f484ccdca228ed68826c0b (diff)
downloademacs-cad590324875d0ca862ced3421d220600b9f77d2.tar.gz
emacs-cad590324875d0ca862ced3421d220600b9f77d2.tar.bz2
emacs-cad590324875d0ca862ced3421d220600b9f77d2.zip
* keyboard.c (read_char): Make a var volatile so longjmp won't clobber
it.
Diffstat (limited to 'src/keyboard.c')
-rw-r--r--src/keyboard.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/keyboard.c b/src/keyboard.c
index b2efadc8510..c601649ebca 100644
--- a/src/keyboard.c
+++ b/src/keyboard.c
@@ -2259,7 +2259,7 @@ read_char (int commandflag, int nmaps, Lisp_Object *maps, Lisp_Object prev_event
volatile Lisp_Object also_record;
volatile int reread;
struct gcpro gcpro1, gcpro2;
- int polling_stopped_here = 0;
+ int volatile polling_stopped_here = 0;
struct kboard *orig_kboard = current_kboard;
also_record = Qnil;