null checks.
why are there still functions that don't have them after we've hit 1.0?
git-svn-id: http://svn.enlightenment.org/svn/e/trunk/eina@62900
7cbeb6ba-43b4-40fd-8cce-
4c39aea84d33
EAPI void
eina_file_close(Eina_File *file)
{
+ if (!file) return;
eina_lock_take(&file->lock);
file->refcount--;
eina_lock_release(&file->lock);
EAPI size_t
eina_file_size_get(Eina_File *file)
{
+ if (!file) return 0;
return file->length;
}
EAPI time_t
eina_file_mtime_get(Eina_File *file)
{
+ if (!file) return 0;
return file->mtime;
}
EAPI const char *
eina_file_filename_get(Eina_File *file)
{
+ if (!file) return NULL;
return file->filename;
}