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:39:36 +02:00
parent 158c1e3e0c
commit 04c553e322
+1 -1
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;
}