man: split the description of sd_bus_error_set()
It was one giant all of text in pseudo-random order. Let's split it into paragraphs talk about one subject each. And unfortunately, the description of what happens when the error is not set was not correct. In general, various functions treat 0/NULL as not-an-error, and return 0.
This commit is contained in:
@@ -465,7 +465,7 @@ _public_ int sd_bus_error_set_errno(sd_bus_error *e, int error) {
|
||||
if (!e)
|
||||
return -error;
|
||||
if (error == 0)
|
||||
return -error;
|
||||
return 0;
|
||||
|
||||
assert_return(!bus_error_is_dirty(e), -EINVAL);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user