mirror of
https://github.com/qemu/qemu.git
synced 2024-11-26 12:23:36 +08:00
08e6464035
requester.cpp uses this pattern to receive an error and pass it on to the caller (err_is_set() macro peeled off for clarity): ... code that may set errset->errp ... if (errset->errp && *errset->errp) { ... handle error ... } This breaks when errset->errp is null. As far as I can tell, it currently isn't, so this is merely fragile, not actually broken. The robust way to do this is to receive the error in a local variable, then propagate it up, like this: Error *err = NULL; ... code that may set err ... if (err) ... handle error ... error_propagate(errset->errp, err); } See also commit |
||
---|---|---|
.. | ||
install.cpp | ||
Makefile.objs | ||
provider.cpp | ||
qga-vss.def | ||
qga-vss.idl | ||
qga-vss.tlb | ||
requester.cpp | ||
requester.h | ||
vss-common.h |