Fixed array initialization.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13276 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Stefano Ceccherini 2005-06-25 14:13:30 +00:00
parent 89d0b3cdad
commit d06e1bff11

View File

@ -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);