Let's at least check for NULL pointer.

SVN revision: 41145
This commit is contained in:
Gustavo Sverzut Barbieri 2009-06-21 21:14:49 +00:00
parent de260634f1
commit c00f5c9b06
1 changed files with 6 additions and 0 deletions

View File

@ -237,6 +237,12 @@ e_object_error(E_Object *obj)
e_error_message_show("%s", buf);
return 1;
#else
if (!obj)
{
fprintf(stderr, "ERROR: Object is NULL. Add break point at %s:%d\n",
__FILE__, __LINE__);
return 1;
}
return 0;
#endif
}