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:
@@ -312,7 +312,7 @@ static void bus_error_strerror(sd_bus_error *e, int error) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!x || errno) {
|
||||
if (errno) {
|
||||
free(m);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user