Fixed array initialization.
git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13276 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -1456,14 +1456,12 @@ RootLayer::KeyboardEventHandler(int32 code, BPrivate::PortLink& msg)
|
|||||||
|
|
||||||
bigtime_t time;
|
bigtime_t time;
|
||||||
int32 scancode, modifiers;
|
int32 scancode, modifiers;
|
||||||
int8 utf[3];
|
int8 utf[3] = { 0, 0, 0 };
|
||||||
char *string = NULL;
|
char *string = NULL;
|
||||||
int8 keystates[16];
|
int8 keystates[16];
|
||||||
int32 raw_char;
|
int32 raw_char;
|
||||||
int32 repeatcount;
|
int32 repeatcount;
|
||||||
|
|
||||||
*((int32*)utf)=0;
|
|
||||||
|
|
||||||
msg.Read<bigtime_t>(&time);
|
msg.Read<bigtime_t>(&time);
|
||||||
msg.Read<int32>(&scancode);
|
msg.Read<int32>(&scancode);
|
||||||
msg.Read<int32>(&raw_char);
|
msg.Read<int32>(&raw_char);
|
||||||
@@ -1679,13 +1677,11 @@ RootLayer::KeyboardEventHandler(int32 code, BPrivate::PortLink& msg)
|
|||||||
|
|
||||||
bigtime_t time;
|
bigtime_t time;
|
||||||
int32 scancode, modifiers;
|
int32 scancode, modifiers;
|
||||||
int8 utf[3];
|
int8 utf[3] = { 0, 0, 0 };
|
||||||
char *string = NULL;
|
char *string = NULL;
|
||||||
int8 keystates[16];
|
int8 keystates[16];
|
||||||
int32 raw_char;
|
int32 raw_char;
|
||||||
|
|
||||||
*((int32*)utf)=0;
|
|
||||||
|
|
||||||
msg.Read<bigtime_t>(&time);
|
msg.Read<bigtime_t>(&time);
|
||||||
msg.Read<int32>(&scancode);
|
msg.Read<int32>(&scancode);
|
||||||
msg.Read<int32>(&raw_char);
|
msg.Read<int32>(&raw_char);
|
||||||
|
|||||||
Reference in New Issue
Block a user