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