summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-09-23 21:34:21 +0200
committerThomas Hindoe Paaboel Andersen <phomes@gmail.com>2014-09-23 21:39:36 +0200
commit04c553e322680b6fcdf5b271e84b0b4b0ad8d5f9 (patch)
treeb6226a40f2530ba84a6fc6f24a2128ac4626ab33 /src
parent158c1e3e0c1e9dd8ebf1b93061e1c81805eac339 (diff)
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
Diffstat (limited to 'src')
-rw-r--r--src/libsystemd/sd-bus/bus-error.c2
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 c2e41fb01..abdfd7320 100644
--- a/src/libsystemd/sd-bus/bus-error.c
+++ b/src/libsystemd/sd-bus/bus-error.c
@@ -312,7 +312,7 @@ static void bus_error_strerror(sd_bus_error *e, int error) {
continue;
}
- if (!x || errno) {
+ if (errno) {
free(m);
return;
}