Since we are not using the returned pointer from eina_hash_find here, we can

remove the variable as eina_hash_find will return NULL is nothing is found.


SVN revision: 41444
devs/princeamd/enlightenment-0.17-elive
Christopher Michael 14 years ago
parent 230b89e8da
commit e31f28d677
  1. 7
      src/bin/e_filereg.c

@ -79,11 +79,8 @@ e_filereg_deregister(const char *path)
EAPI Eina_Bool
e_filereg_file_protected(const char *path)
{
Filereg_Item *fi = NULL;
fi = eina_hash_find(_e_filereg, path);
if (!fi) return EINA_FALSE;
return EINA_TRUE;
if (eina_hash_find(_e_filereg, path)) return EINA_TRUE;
return EINA_FALSE;
}
/* Private Functions */

Loading…
Cancel
Save