let q = world.query::<()>().build();
println!("q-empty: {:?}", q.to_string());
Results in:
Segmentation fault (core dumped)
A look at ecs_query_str() shows it returns NULL when the query term count is 0, while APIQuery::to_string() does not check for a NULL return value.
Results in:
A look at
ecs_query_str()shows it returnsNULLwhen the query term count is 0, whileAPIQuery::to_string()does not check for aNULLreturn value.