diff options
author | Nicolas Bertrand <nicolas.bertrand@linux.intel.com> | 2011-04-05 14:07:05 +0200 |
---|---|---|
committer | Denis Kenzior <denkenz@gmail.com> | 2011-04-07 22:26:42 -0500 |
commit | 05964802601a9e153efa8d9931a2ee3400b50276 (patch) | |
tree | 5fbeab2c15a3b077f0c4f4d309af7bb82cd99696 /src/stkagent.c | |
parent | 43488e87d173153223880a83bdbbdbdff3fbf7b1 (diff) | |
download | ofono-05964802601a9e153efa8d9931a2ee3400b50276.tar.bz2 |
stkagent: Avoid error when URL is null
...with STK command "LAUNCH BROWSER" and default URL
Diffstat (limited to 'src/stkagent.c')
-rw-r--r-- | src/stkagent.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/stkagent.c b/src/stkagent.c index 54ca575a..220812e9 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, |