mirror of git://git.sysmocom.de/ofono
stkagent: Avoid error when URL is null
...with STK command "LAUNCH BROWSER" and default URL
This commit is contained in:
parent
43488e87d1
commit
0596480260
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue