Update iwasm_main.c

This commit is contained in:
wenyongh 2020-02-22 09:39:46 +08:00 committed by GitHub
parent f663f44bd7
commit 4979379246
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -361,7 +361,11 @@ static attr_container_t * read_test_sensor(void * sensor)
//luc: for test
attr_container_t *attr_obj = attr_container_create("read test sensor data");
if (attr_obj) {
attr_container_set_string(&attr_obj, "name", "read test sensor");
bool ret = attr_container_set_string(&attr_obj, "name", "read test sensor");
if (!ret) {
attr_container_destroy(attr_obj);
return NULL;
}
return attr_obj;
}
return NULL;