summaryrefslogtreecommitdiff
path: root/src/bin
diff options
context:
space:
mode:
authorJean-Philippe Andre <jp.andre@samsung.com>2013-08-23 18:31:30 +0900
committerJean-Philippe Andre <jp.andre@samsung.com>2013-10-28 15:47:14 +0900
commit3f30fae818cde5d0f9d2159e7461d53493f295b8 (patch)
tree0ff4b645137674a2ac0c25b70f22b09845f0848f /src/bin
parent8b39c443fe711fd311d1fabc6273b023bd242694 (diff)
evas/cserve2: Remap indexes when count is wrong
When advertised count is wrong, try to remap the index. This will avoid errors with string_get().
Diffstat (limited to 'src/bin')
-rw-r--r--src/bin/evas/evas_cserve2_cache.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/evas/evas_cserve2_cache.c b/src/bin/evas/evas_cserve2_cache.c
index 88cd2c9669..bc89150db5 100644
--- a/src/bin/evas/evas_cserve2_cache.c
+++ b/src/bin/evas/evas_cserve2_cache.c
@@ -498,6 +498,8 @@ _image_loaded_msg_create(Image_Entry *ientry, Image_Data *idata, int *size)
498 else 498 else
499 idata->shm_id = cserve2_shared_string_add(shmpath); 499 idata->shm_id = cserve2_shared_string_add(shmpath);
500 500
501 idata->valid = EINA_TRUE;
502
501 buf = (char *)msg + sizeof(*msg); 503 buf = (char *)msg + sizeof(*msg);
502 memcpy(buf, shmpath, path_len); 504 memcpy(buf, shmpath, path_len);
503 505
@@ -832,7 +834,6 @@ _load_request_response(Image_Entry *ientry,
832 idata = _image_data_find(ENTRYID(ientry)); 834 idata = _image_data_find(ENTRYID(ientry));
833 if (!idata) return NULL; 835 if (!idata) return NULL;
834 836
835 idata->valid = EINA_TRUE;
836 _entry_load_finish(ASENTRY(ientry)); 837 _entry_load_finish(ASENTRY(ientry));
837 ASENTRY(ientry)->request = NULL; 838 ASENTRY(ientry)->request = NULL;
838 839