Check if file_id exists

SVN revision: 46745
This commit is contained in:
Sebastian Dransfeld 2010-03-01 21:43:49 +00:00
parent 59691e5660
commit a15116ecae
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ cache_add(const char *path, const char *file_id, int priority)
return 0;
eina_hash_add(paths, desk->orig_path, (void *)1);
}
if (!eina_hash_find(file_ids, file_id))
if (file_id && !eina_hash_find(file_ids, file_id))
{
int id;
char key[PATH_MAX];