From: discomfitor Date: Thu, 10 Feb 2011 07:50:20 +0000 (+0000) Subject: added some more possibly useless safety checks to ecore_con_ares X-Git-Tag: 2.0_alpha~194^2~222 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ac09f11d64ec3d64426ac9c3e73aa25f3ddc6744;p=framework%2Fuifw%2Fecore.git added some more possibly useless safety checks to ecore_con_ares git-svn-id: svn+ssh://svn.enlightenment.org/var/svn/e/trunk/ecore@56892 7cbeb6ba-43b4-40fd-8cce-4c39aea84d33 --- diff --git a/ChangeLog b/ChangeLog index 44ca038..3b83b31 100644 --- a/ChangeLog +++ b/ChangeLog @@ -19,3 +19,7 @@ 2011-02-01 Mike McCormack * Remove SIGRT from ecore's signals since it's unused and broken + +2011-02-10 Mike Blumenkrantz + + * added some more possibly useless safety checks to ecore_con_ares diff --git a/src/lib/ecore_con/ecore_con_ares.c b/src/lib/ecore_con/ecore_con_ares.c index 9f395a4..62e9d0c 100644 --- a/src/lib/ecore_con/ecore_con_ares.c +++ b/src/lib/ecore_con/ecore_con_ares.c @@ -565,7 +565,7 @@ _ecore_con_info_ares_nameinfo(Ecore_Con_CAres *arg, else *arg->result->service = '\0'; - arg->done_cb(arg->data, arg->result); + if (arg->data) arg->done_cb(arg->data, arg->result); break; case ARES_ENOTIMP: @@ -573,7 +573,7 @@ _ecore_con_info_ares_nameinfo(Ecore_Con_CAres *arg, case ARES_ENOMEM: case ARES_EDESTRUCTION: case ARES_EBADFLAGS: - arg->done_cb(arg->data, NULL); + if (arg->data) arg->done_cb(arg->data, NULL); break; }