added some more possibly useless safety checks to ecore_con_ares

SVN revision: 56892
This commit is contained in:
Mike Blumenkrantz 2011-02-10 07:50:20 +00:00
parent aaad5f7319
commit 54baacb790
2 changed files with 6 additions and 2 deletions

View File

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

View File

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