summaryrefslogtreecommitdiff
path: root/src/lib/evas/cserve2/evas_cs2_client.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/evas/cserve2/evas_cs2_client.c')
-rw-r--r--src/lib/evas/cserve2/evas_cs2_client.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/evas/cserve2/evas_cs2_client.c b/src/lib/evas/cserve2/evas_cs2_client.c
index 5721d0bd69..9bcf966339 100644
--- a/src/lib/evas/cserve2/evas_cs2_client.c
+++ b/src/lib/evas/cserve2/evas_cs2_client.c
@@ -1929,6 +1929,14 @@ _shared_index_item_get_by_id(Shared_Index *si, int elemsize, unsigned int id)
1929 1929
1930 base = si->data + sizeof(Shared_Array_Header); 1930 base = si->data + sizeof(Shared_Array_Header);
1931 1931
1932 // Direct access, works for non-repacked arrays
1933 if ((int) id < high)
1934 {
1935 obj = (Shm_Object *) (base + (elemsize * id));
1936 if (obj->id == id)
1937 return obj;
1938 }
1939
1932 // Binary search 1940 // Binary search
1933 start_high = high; 1941 start_high = high;
1934 while(high != low) 1942 while(high != low)