forked from enlightenment/efl
eldbus: error message iters should be initted as readonly.
This commit is contained in:
parent
7767751c88
commit
29b3c80385
|
@ -826,12 +826,7 @@ eldbus_message_error_new(const Eldbus_Message *msg, const char *error_name, cons
|
||||||
reply->dbus_msg = dbus_message_new_error(msg->dbus_msg,
|
reply->dbus_msg = dbus_message_new_error(msg->dbus_msg,
|
||||||
error_name, error_msg);
|
error_name, error_msg);
|
||||||
|
|
||||||
/*
|
dbus_message_iter_init(reply->dbus_msg, &reply->iterator->dbus_iterator);
|
||||||
* Technically user should not append more arguments in an error message but
|
|
||||||
* we can't leave its iter as NULL.
|
|
||||||
*/
|
|
||||||
dbus_message_iter_init_append(reply->dbus_msg,
|
|
||||||
&reply->iterator->dbus_iterator);
|
|
||||||
|
|
||||||
return reply;
|
return reply;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue