Avoid error with STK command "LAUNCH BROWSER" and default URL

---
 src/stkagent.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/src/stkagent.c b/src/stkagent.c
index 54ca575..220812e 100644
--- a/src/stkagent.c
+++ b/src/stkagent.c
@@ -1061,6 +1061,9 @@ int stk_agent_confirm_launch_browser(struct stk_agent 
*agent, const char *text,
        if (agent->msg == NULL)
                return -ENOMEM;
 
+       if (url == NULL)
+               url = "";
+
        dbus_message_append_args(agent->msg,
                                        DBUS_TYPE_STRING, &text,
                                        DBUS_TYPE_BYTE, &icon_id,
-- 
1.7.1

_______________________________________________
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono

Reply via email to