stkagent: Avoid error when URL is null

...with STK command "LAUNCH BROWSER" and default URL
This commit is contained in:
Nicolas Bertrand 2011-04-05 14:07:05 +02:00 committed by Denis Kenzior
parent 43488e87d1
commit 0596480260
1 changed files with 3 additions and 0 deletions

View File

@ -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,