diff options
Diffstat (limited to 'src/libsystemd/sd-bus/bus-error.c')
-rw-r--r-- | src/libsystemd/sd-bus/bus-error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsystemd/sd-bus/bus-error.c b/src/libsystemd/sd-bus/bus-error.c index 2e64b925f3..ad1a66da72 100644 --- a/src/libsystemd/sd-bus/bus-error.c +++ b/src/libsystemd/sd-bus/bus-error.c @@ -80,7 +80,7 @@ static int bus_error_mapping_lookup(const char *name, size_t len) { const sd_bus_name_error_mapping *m; for (m = __start_sd_bus_errnomap; m < __stop_sd_bus_errnomap; m++) - if (strneq(m->name, name, len)) + if (m->name && strneq(m->name, name, len)) return m->code; return EIO; |