Skip to contentSkip to conversation

Avoid error when URL is null

PATCH In review Nicolas Bertrand 2 participants 2 messages Apr 5, 2011 – Apr 8, 2011

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 Avoid error when URL is null

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

---
 src/stkagent.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
src/stkagent.c +3 -0
index 54ca575..220812e 100644
@@ -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,
Signature · 1 line
1.7.1
#1 lore raw

Hi Nicolas,

Quoted 6 lines · Nicolas Bertrand

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