projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3383f7e
)
dbus1-generator: fix array sentinal
author
David Herrmann
<dh.herrmann@gmail.com>
Thu, 8 Jan 2015 15:13:39 +0000
(16:13 +0100)
committer
David Herrmann
<dh.herrmann@gmail.com>
Thu, 8 Jan 2015 15:13:39 +0000
(16:13 +0100)
Add a {} sentinal entry so the config-iterator can properly iterate all
array elements. Fixes a segfault in the dbus1-generator.
src/dbus1-generator/dbus1-generator.c
patch
|
blob
|
history
diff --git
a/src/dbus1-generator/dbus1-generator.c
b/src/dbus1-generator/dbus1-generator.c
index
10a33ef
..
ca737e3
100644
(file)
--- a/
src/dbus1-generator/dbus1-generator.c
+++ b/
src/dbus1-generator/dbus1-generator.c
@@
-155,6
+155,7
@@
static int add_dbus(const char *path, const char *fname, const char *type) {
{ "D-BUS Service", "Exec", config_parse_string, 0, &exec },
{ "D-BUS Service", "User", config_parse_string, 0, &user },
{ "D-BUS Service", "SystemdService", config_parse_string, 0, &service },
+ { },
};
char *p;