Re: [PATCH] Avoid error when URL is null

2011-04-07 Thread Denis Kenzior
Hi Nicolas,

On 04/05/2011 07:07 AM, Nicolas Bertrand wrote:
 Avoid error with STK command LAUNCH BROWSER and default URL
 
 ---
  src/stkagent.c |3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)
 

Patch has been applied, thanks.

Regards,
-Denis
___
ofono mailing list
ofono@ofono.org
http://lists.ofono.org/listinfo/ofono


[PATCH] Avoid error when URL is null

2011-04-05 Thread Nicolas Bertrand
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