forked from enlightenment/efl
evas cserve2 - fix chekc of wrong return type
the wrong value was checked (not the returned value) - coverity caught this. fixes CID 1135269
This commit is contained in:
parent
153bbd8003
commit
8764bd240c
|
@ -429,7 +429,7 @@ cserve2_shared_array_repack(Shared_Array *sa, int generation_id,
|
||||||
|
|
||||||
// Create new array
|
// Create new array
|
||||||
sa2 = cserve2_shared_array_new(sa->header->tag, generation_id, elemsize, newcount);
|
sa2 = cserve2_shared_array_new(sa->header->tag, generation_id, elemsize, newcount);
|
||||||
if (!sa)
|
if (!sa2)
|
||||||
{
|
{
|
||||||
ERR("Can not repack array: failed to create new array");
|
ERR("Can not repack array: failed to create new array");
|
||||||
return NULL;
|
return NULL;
|
||||||
|
|
Loading…
Reference in New Issue