summaryrefslogtreecommitdiffstats
path: root/src/ussd.c
diff options
context:
space:
mode:
authorAndrzej Zaborowski <andrew.zaborowski@intel.com>2009-10-17 00:45:15 +0200
committerDenis Kenzior <denkenz@gmail.com>2009-10-16 17:46:28 -0500
commit15c07346dfed5d6de963e5ada08f5ed00614e6a7 (patch)
tree8dd3adc6d5c665e3b67829d012beda0b81727ec2 /src/ussd.c
parentfeda620c94a9e3c0951ddc74994e5c6f2f22ee07 (diff)
downloadofono-15c07346dfed5d6de963e5ada08f5ed00614e6a7.tar.bz2
Parse +CUSD responses.
Diffstat (limited to 'src/ussd.c')
-rw-r--r--src/ussd.c3
1 files changed, 3 insertions, 0 deletions
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,