mirror of
https://github.com/systemd/systemd.git
synced 2024-11-02 10:51:20 +03:00
sd_bus: use structured intialization in one more place
This commit is contained in:
parent
15e9a42074
commit
e8f280bd0a
@ -205,8 +205,7 @@ _public_ void sd_bus_error_free(sd_bus_error *e) {
|
||||
free((void*) e->message);
|
||||
}
|
||||
|
||||
e->name = e->message = NULL;
|
||||
e->_need_free = 0;
|
||||
*e = (sd_bus_error) {};
|
||||
}
|
||||
|
||||
_public_ int sd_bus_error_set(sd_bus_error *e, const char *name, const char *message) {
|
||||
|
Loading…
Reference in New Issue
Block a user