forked from enlightenment/efl
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:
parent
73670beba3
commit
99efaf4ad1
|
@ -2613,6 +2613,7 @@ cserve2_cache_file_open(Client *client, unsigned int client_file_id,
|
||||||
ERR("Could not create new file entry!");
|
ERR("Could not create new file entry!");
|
||||||
return -1;
|
return -1;
|
||||||
}
|
}
|
||||||
|
memset(fd, 0, sizeof(*fd));
|
||||||
fd->valid = EINA_FALSE;
|
fd->valid = EINA_FALSE;
|
||||||
fd->path = cserve2_shared_string_add(path);
|
fd->path = cserve2_shared_string_add(path);
|
||||||
fd->key = cserve2_shared_string_add(key);
|
fd->key = cserve2_shared_string_add(key);
|
||||||
|
|
Loading…
Reference in New Issue