chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a437574
)
systemctl: fix parsing of LoadError property for systemctl show
author
Lennart Poettering
<lennart@poettering.net>
Sun, 31 Jul 2011 16:28:33 +0000
(18:28 +0200)
committer
Lennart Poettering
<lennart@poettering.net>
Sun, 31 Jul 2011 16:28:33 +0000
(18:28 +0200)
src/systemctl.c
patch
|
blob
|
history
diff --git
a/src/systemctl.c
b/src/systemctl.c
index 4981433ebefa367008575235fb97cc7951b48100..bb998d37e21b4c4e313adc065f069dd8231ae973 100644
(file)
--- a/
src/systemctl.c
+++ b/
src/systemctl.c
@@
-2469,11
+2469,13
@@
static int print_property(const char *name, DBusMessageIter *iter) {
} else if (dbus_message_iter_get_arg_type(&sub) == DBUS_TYPE_STRING && streq(name, "LoadError")) {
const char *a = NULL, *b = NULL;
- if (bus_iter_get_basic_and_next(&sub, DBUS_TYPE_STRING, &a, true) > 0)
+ if (bus_iter_get_basic_and_next(&sub, DBUS_TYPE_STRING, &a, true) >
=
0)
bus_iter_get_basic_and_next(&sub, DBUS_TYPE_STRING, &b, false);
if (arg_all || !isempty(a) || !isempty(b))
printf("%s=%s \"%s\"\n", name, strempty(a), strempty(b));
+
+ return 0;
}
break;