From 868456a4d2c8c4c91bd94b92805066229ead1f19 Mon Sep 17 00:00:00 2001 From: discomfitor Date: Mon, 12 Mar 2012 04:53:47 +0000 Subject: [PATCH] From: Bluezery Subject: [E-devel] [Patch][ecore_con] Simple bug fix Date: Mon, 12 Mar 2012 13:45:02 +0900 Hello, This is patch to prevent a segfault if curlmsg == NULL. Thanks. git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@69217 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- src/lib/ecore_con/ecore_con_url.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/lib/ecore_con/ecore_con_url.c b/src/lib/ecore_con/ecore_con_url.c index 7047713..05f0678 100644 --- a/src/lib/ecore_con/ecore_con_url.c +++ b/src/lib/ecore_con/ecore_con_url.c @@ -1312,7 +1312,10 @@ _ecore_con_url_event_url_complete(Ecore_Con_Url *url_con, CURLMsg *curlmsg) if (!url_con->status) _ecore_con_url_status_get(url_con); } - else ERR("Curl message have errors: %d", curlmsg->data.result); + else if (curlmsg) + ERR("Curl message have errors: %d", curlmsg->data.result); + else + CRIT("THIS IS BAD."); e->status = url_con->status; e->url_con = url_con; -- 2.7.4