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:
Carsten Haitzler 2014-02-13 19:27:11 +09:00
parent 153bbd8003
commit 8764bd240c
1 changed files with 1 additions and 1 deletions

View File

@ -429,7 +429,7 @@ cserve2_shared_array_repack(Shared_Array *sa, int generation_id,
// Create new array
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");
return NULL;