1
0
mirror of https://github.com/systemd/systemd.git synced 2024-12-23 21:35:11 +03:00

bus: remove unused check

strerror_r does not return null here and even if it did we would have
problems already at the preceding strlen call.

Found by coverity. Fixes: CID#1237770
This commit is contained in:
Thomas Hindoe Paaboel Andersen 2014-09-23 21:34:21 +02:00
parent 158c1e3e0c
commit 04c553e322

View File

@ -312,7 +312,7 @@ static void bus_error_strerror(sd_bus_error *e, int error) {
continue;
}
if (!x || errno) {
if (errno) {
free(m);
return;
}