Code Review
/
src
/
app-framework-main.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
utils-dbus: fix un initialised status
[src/app-framework-main.git]
/
src
/
utils-jbus.c
diff --git
a/src/utils-jbus.c
b/src/utils-jbus.c
index
e379921
..
1f85a4c
100644
(file)
--- a/
src/utils-jbus.c
+++ b/
src/utils-jbus.c
@@
-268,7
+268,9
@@
static DBusHandlerResult incoming_resp(DBusConnection *connection, DBusMessage *
*prv = jrw->next;
/* retrieve the string value */
*prv = jrw->next;
/* retrieve the string value */
- if (!dbus_message_get_args(message, NULL, DBUS_TYPE_STRING, &str, DBUS_TYPE_INVALID)) {
+ if (dbus_message_get_args(message, NULL, DBUS_TYPE_STRING, &str, DBUS_TYPE_INVALID))
+ status = 0;
+ else {
status = -1;
str = NULL;
reply = NULL;
status = -1;
str = NULL;
reply = NULL;