From: Bluezery <ohpowel@gmail.com>

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.


SVN revision: 69217
This commit is contained in:
Bluezery 2012-03-12 04:53:47 +00:00 committed by Mike Blumenkrantz
parent 490d69af2e
commit 33db572b42
1 changed files with 4 additions and 1 deletions

View File

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