diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-08-16 22:13:34 +0200 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-08-16 22:13:34 +0200 |
commit | 759e02e79dd5e02becff6f34247aac9605ab410e (patch) | |
tree | c0ce13b125849bef3f53f5064052c30b35b28090 /src/udev/mtd_probe/mtd_probe.c | |
parent | 0d4605ec3c9c1392bb5f0abc590b1d855df5eebb (diff) |
sd-bus: always fill in sd_bus_error paramters, on error
Whenever one of our calls is invoked with a non-NULL, writable
sd_bus_error parameter, let's fill in some valid error on failure. We
previously only filled in remote errors, but never local errors, which is
hard to handle by users. Hence, let's clean this up to always fill in
the error.
This introduces a new bus_assert_return() macro that works like
assert_return() but optionally also initializes a bus_error struct.
Fixes #224.
Based on a patch by Umut Tezduyar.
Diffstat (limited to 'src/udev/mtd_probe/mtd_probe.c')
0 files changed, 0 insertions, 0 deletions