Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
systemd
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
steam
systemd
Commits
d9115e18
Commit
d9115e18
authored
Apr 12, 2013
by
Lennart Poettering
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kdbus: make sure msg structure is properly initialized
parent
e86b80b8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
+2
-0
src/libsystemd-bus/bus-kernel.c
src/libsystemd-bus/bus-kernel.c
+2
-0
No files found.
src/libsystemd-bus/bus-kernel.c
View file @
d9115e18
...
@@ -117,6 +117,8 @@ static int bus_message_setup_kmsg(sd_bus_message *m) {
...
@@ -117,6 +117,8 @@ static int bus_message_setup_kmsg(sd_bus_message *m) {
if
(
!
m
->
kdbus
)
if
(
!
m
->
kdbus
)
return
-
ENOMEM
;
return
-
ENOMEM
;
memset
(
m
->
kdbus
,
0
,
sz
);
m
->
kdbus
->
flags
=
m
->
kdbus
->
flags
=
((
m
->
header
->
flags
&
SD_BUS_MESSAGE_NO_REPLY_EXPECTED
)
?
0
:
KDBUS_MSG_FLAGS_EXPECT_REPLY
)
|
((
m
->
header
->
flags
&
SD_BUS_MESSAGE_NO_REPLY_EXPECTED
)
?
0
:
KDBUS_MSG_FLAGS_EXPECT_REPLY
)
|
((
m
->
header
->
flags
&
SD_BUS_MESSAGE_NO_AUTO_START
)
?
KDBUS_MSG_FLAGS_NO_AUTO_START
:
0
);
((
m
->
header
->
flags
&
SD_BUS_MESSAGE_NO_AUTO_START
)
?
KDBUS_MSG_FLAGS_NO_AUTO_START
:
0
);
...
...
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