1
0
mirror of https://github.com/systemd/systemd.git synced 2025-02-28 05:57:33 +03:00

bus: convert a bus error with NULL name into an errno of 0 in sd_bus_error_get_errno()

This commit is contained in:
Lennart Poettering 2014-01-10 13:35:12 +08:00
parent c5b37953b7
commit bc6a623248

View File

@ -285,6 +285,9 @@ _public_ int sd_bus_error_get_errno(const sd_bus_error* e) {
if (!e)
return 0;
if (!e->name)
return 0;
return bus_error_name_to_errno(e->name);
}