🧪 test(exdata): add test case
This commit is contained in:
@@ -136,7 +136,7 @@ void exdata_runtime_free(struct exdata_runtime *h)
|
||||
|
||||
int exdata_set(struct exdata_runtime *h, int idx, void *ex_ptr)
|
||||
{
|
||||
if(h==NULL || h->schema == NULL|| h->exdata_array == NULL)return -1;
|
||||
if(h==NULL || h->schema == NULL|| h->exdata_array == NULL || idx<0)return -1;
|
||||
unsigned int len=utarray_len(h->schema->exdata_meta_array);
|
||||
if(len < (unsigned int)idx)return -1;
|
||||
if((h->exdata_array+idx)->state == EXIT)return -1;
|
||||
|
||||
Reference in New Issue
Block a user