mirror of
https://github.com/systemd/systemd.git
synced 2024-12-22 17:35:35 +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:
parent
158c1e3e0c
commit
04c553e322
@ -312,7 +312,7 @@ static void bus_error_strerror(sd_bus_error *e, int error) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (!x || errno) {
|
||||
if (errno) {
|
||||
free(m);
|
||||
return;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user