From c658018ff8e3a85e5dbfd0d5eff5b7f1a207ff69 Mon Sep 17 00:00:00 2001 From: Stefan Monnier Date: Sun, 15 Jun 2003 21:00:45 +0000 Subject: [PATCH] (dos_rawgetc): Don't pass uninitialized data to kbd_buffer_store_event. --- src/msdos.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/msdos.c b/src/msdos.c index c558515ddfa..5f2f488b20f 100644 --- a/src/msdos.c +++ b/src/msdos.c @@ -1,5 +1,5 @@ /* MS-DOS specific C utilities. -*- coding: raw-text -*- - Copyright (C) 1993, 94, 95, 96, 97, 1999, 2000, 2001 + Copyright (C) 1993, 94, 95, 96, 97, 1999, 2000, 01, 2003 Free Software Foundation, Inc. This file is part of GNU Emacs. @@ -3130,7 +3130,8 @@ dos_rawgetc () struct input_event event; union REGS regs; struct display_info *dpyinfo = FRAME_X_DISPLAY_INFO (SELECTED_FRAME()); - + EVENT_INIT (event); + #ifndef HAVE_X_WINDOWS /* Maybe put the cursor where it should be. */ IT_cmgoto (SELECTED_FRAME()); -- 2.39.2