Skip to content

Commit

Permalink
[mms_handler_dbus] Replace NULL cc list with an empty list
Browse files Browse the repository at this point in the history
  • Loading branch information
monich committed Mar 14, 2014
1 parent fa28e9e commit fa04ae6
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion mms-handler-dbus/src/mms_handler_dbus.c
Expand Up @@ -102,7 +102,9 @@ mms_handler_dbus_message_received(
OrgNemomobileMmsHandler* proxy = mms_handler_dbus_connect(handler);
MMS_ASSERT(msg->id && msg->id[0]);
if (msg->id && msg->id[0] && proxy) {
const char* nothing = NULL;
const char* subject = msg->subject ? msg->subject : "";
const char** cc = msg->cc ? (const char**)msg->cc : &nothing;
GError* error = NULL;
GSList* list = msg->parts;
GVariant* parts;
Expand All @@ -119,7 +121,7 @@ mms_handler_dbus_message_received(
parts = g_variant_ref_sink(g_variant_builder_end(&b));
ok = org_nemomobile_mms_handler_call_message_received_sync(
proxy, msg->id, msg->message_id, msg->from, (const char**)msg->to,
(const char**)msg->cc, subject, msg->date, msg->priority,
cc, subject, msg->date, msg->priority,
msg->cls, msg->read_report_req, parts, NULL, &error);
if (!ok) {
MMS_ERR("Failed to nofity commhistoryd: %s", MMS_ERRMSG(error));
Expand Down

0 comments on commit fa04ae6

Please sign in to comment.