1
0
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:
Zbigniew Jędrzejewski-Szmek 2018-11-08 14:26:00 +01:00
parent 15e9a42074
commit e8f280bd0a

View File

@ -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) {