[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 28c01bd484: Correctly initialize values after a new device is ena
From: |
Po Lu |
Subject: |
master 28c01bd484: Correctly initialize values after a new device is enabled |
Date: |
Sat, 6 Aug 2022 02:51:19 -0400 (EDT) |
branch: master
commit 28c01bd4841be69d01b6db661917f1be9830cc3d
Author: Po Lu <luangruo@yahoo.com>
Commit: Po Lu <luangruo@yahoo.com>
Correctly initialize values after a new device is enabled
* src/xterm.c (handle_one_xevent): Initialize new device to
zero. (bug#57011)
---
src/xterm.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/xterm.c b/src/xterm.c
index b1e564a923..8f84edc63e 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -22144,6 +22144,8 @@ handle_one_xevent (struct x_display_info *dpyinfo,
dpyinfo->devices
= xrealloc (dpyinfo->devices, (sizeof
*dpyinfo->devices
*
++dpyinfo->num_devices));
+ memset (dpyinfo->devices + dpyinfo->num_devices - 1,
+ 0, sizeof *dpyinfo->devices);
device = &dpyinfo->devices[dpyinfo->num_devices - 1];
xi_populate_device_from_info (device, info);
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 28c01bd484: Correctly initialize values after a new device is enabled,
Po Lu <=