mirror of
https://github.com/qemu/qemu.git
synced 2025-10-24 19:01:24 +00:00
When a function returns a null pointer on error and only on error, you
can do
if (!foo(foos, errp)) {
... handle error ...
}
instead of the more cumbersome
Error *err = NULL;
if (!foo(foos, &err)) {
error_propagate(errp, err);
... handle error ...
}
A StringProperty's getter, however, may return null on success! We
then fail to call visit_type_str().
Screwed up in
|
||
|---|---|---|
| .. | ||
| container.c | ||
| cpu.c | ||
| Makefile.objs | ||
| object_interfaces.c | ||
| object.c | ||
| qom-qobject.c | ||