Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
8e5b1e7a
Commit
8e5b1e7a
authored
Jul 22, 2017
by
Ulrich Sibiller
Committed by
Mike Gabriel
Dec 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keyboard.c: Replace some memsets by zero initialization
parent
de9b4edf
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+3
-6
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
8e5b1e7a
...
...
@@ -893,7 +893,7 @@ XkbError:
char
*
nxagentXkbConfigFilePath
;
XkbComponentNamesRec
names
;
XkbComponentNamesRec
names
=
{
0
}
;
char
*
rules
,
*
variants
,
*
options
;
#ifdef TEST
...
...
@@ -904,7 +904,6 @@ XkbError:
fprintf
(
stderr
,
"nxagentKeyboardProc: nxagentKeyboard is [%s].
\n
"
,
nxagentKeyboard
?
nxagentKeyboard
:
"NULL"
);
#endif
memset
(
&
names
,
0
,
sizeof
(
XkbComponentNamesRec
));
rules
=
nxagentXkbGetRules
();
...
...
@@ -1257,11 +1256,10 @@ void nxagentNotifyKeyboardChanges(int oldMinKeycode, int oldMaxKeycode)
if
(
!
noXkbExtension
)
{
DeviceIntPtr
dev
;
xkbNewKeyboardNotify
nkn
;
xkbNewKeyboardNotify
nkn
=
{
0
}
;
dev
=
inputInfo
.
keyboard
;
memset
(
&
nkn
,
0
,
sizeof
(
xkbNewKeyboardNotify
));
nkn
.
deviceID
=
nkn
.
oldDeviceID
=
dev
->
id
;
nkn
.
minKeyCode
=
8
;
nkn
.
maxKeyCode
=
255
;
...
...
@@ -1279,9 +1277,8 @@ void nxagentNotifyKeyboardChanges(int oldMinKeycode, int oldMaxKeycode)
#endif
int
i
;
xEvent
event
;
xEvent
event
=
{
0
}
;
memset
(
&
event
,
0
,
sizeof
(
xEvent
));
event
.
u
.
u
.
type
=
MappingNotify
;
event
.
u
.
mappingNotify
.
request
=
MappingKeyboard
;
event
.
u
.
mappingNotify
.
firstKeyCode
=
inputInfo
.
keyboard
->
key
->
curKeySyms
.
minKeyCode
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment