File mouseemu.initialize_device.patch of Package mouseemu

#! /bin/sh /usr/share/dpatch/dpatch-run
## write_error.dpatch by <agx@sigxcpu.org>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: Intialize all fields in uinput_user_dev, otherwise strange things 
## DP: like dead keyboard, etc. might happen
##
---
# mouseemu.c |    1 +
# 1 file changed, 1 insertion(+)
#
--- a/mouseemu.c
+++ b/mouseemu.c
@@ -437,6 +437,7 @@ int uinput_setup(void)
 	struct uinput_user_dev device;
 	int i;
 	
+	memset(&device, 0, sizeof(struct uinput_user_dev));
 	/*setup keyboard device */
 	
         if(ui_keyb_fd > 0) {