Evas/cserve2: Clear up File_Data when opening a new image

After a file changed, the "changed" flag was not reset in the
File_Data structure, although it was supposed to represent a
new entry altogether.
This commit is contained in:
Jean-Philippe Andre 2014-01-13 17:22:50 +09:00
parent 73670beba3
commit 99efaf4ad1
1 changed files with 1 additions and 0 deletions

View File

@ -2613,6 +2613,7 @@ cserve2_cache_file_open(Client *client, unsigned int client_file_id,
ERR("Could not create new file entry!");
return -1;
}
memset(fd, 0, sizeof(*fd));
fd->valid = EINA_FALSE;
fd->path = cserve2_shared_string_add(path);
fd->key = cserve2_shared_string_add(key);