From 15c07346dfed5d6de963e5ada08f5ed00614e6a7 Mon Sep 17 00:00:00 2001 From: Andrzej Zaborowski Date: Sat, 17 Oct 2009 00:45:15 +0200 Subject: Parse +CUSD responses. --- src/ussd.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/ussd.c') diff --git a/src/ussd.c b/src/ussd.c index be502967..2bf378df 100644 --- a/src/ussd.c +++ b/src/ussd.c @@ -313,6 +313,9 @@ void ofono_ussd_notify(struct ofono_ussd *ussd, int status, const char *str) reply = dbus_message_new_method_return(ussd->pending); + if (!str) + str = ""; + dbus_message_iter_init_append(reply, &iter); dbus_message_iter_append_basic(&iter, DBUS_TYPE_STRING, -- cgit v1.2.3