summaryrefslogtreecommitdiffstats
path: root/dbus
diff options
context:
space:
mode:
Diffstat (limited to 'dbus')
-rw-r--r--dbus/dbus-marshal.c2
-rw-r--r--dbus/dbus-message.c9
-rw-r--r--dbus/dbus-pending-call.c2
3 files changed, 11 insertions, 2 deletions
diff --git a/dbus/dbus-marshal.c b/dbus/dbus-marshal.c
index 1e4992ad..ecc1e1ae 100644
--- a/dbus/dbus-marshal.c
+++ b/dbus/dbus-marshal.c
@@ -1400,7 +1400,7 @@ _dbus_demarshal_double_array (const DBusString *str,
* @param pos the position in the string
* @param new_pos the new position of the string
* @param array the array
- * @param array_len length of the demarshaled data
+ * @param array_len location for length of the demarshaled data or NULL
* @returns #TRUE on success
*/
dbus_bool_t
diff --git a/dbus/dbus-message.c b/dbus/dbus-message.c
index e23e56e1..45309766 100644
--- a/dbus/dbus-message.c
+++ b/dbus/dbus-message.c
@@ -1224,6 +1224,8 @@ dbus_message_new_method_return (DBusMessage *method_call)
return NULL;
}
+ dbus_message_set_no_reply (message, TRUE);
+
if (!dbus_message_set_reply_serial (message,
dbus_message_get_serial (method_call)))
{
@@ -1268,6 +1270,8 @@ dbus_message_new_signal (const char *path,
dbus_message_unref (message);
return NULL;
}
+
+ dbus_message_set_no_reply (message, TRUE);
return message;
}
@@ -1313,6 +1317,8 @@ dbus_message_new_error (DBusMessage *reply_to,
return NULL;
}
+ dbus_message_set_no_reply (message, TRUE);
+
if (!dbus_message_set_reply_serial (message,
dbus_message_get_serial (reply_to)))
{
@@ -2207,6 +2213,9 @@ dbus_message_iter_get_args_valist (DBusMessageIter *iter,
data = va_arg (var_args, void *);
len = va_arg (var_args, int *);
+ _dbus_return_val_if_fail (data != NULL, FALSE);
+ _dbus_return_val_if_fail (len != NULL, FALSE);
+
if (dbus_message_iter_get_array_type (iter) != type)
{
dbus_set_error (error, DBUS_ERROR_INVALID_ARGS,
diff --git a/dbus/dbus-pending-call.c b/dbus/dbus-pending-call.c
index dad444e3..e0d8e3ee 100644
--- a/dbus/dbus-pending-call.c
+++ b/dbus/dbus-pending-call.c
@@ -64,7 +64,7 @@ _dbus_pending_call_new (DBusConnection *connection,
if (!dbus_pending_call_allocate_data_slot (&notify_user_data_slot))
return NULL;
- pending = dbus_new (DBusPendingCall, 1);
+ pending = dbus_new0 (DBusPendingCall, 1);
if (pending == NULL)
{