chiark / gitweb /
bus-util: fix error number output when waiting for job
authorLennart Poettering <lennart@poettering.net>
Wed, 7 Jan 2015 21:51:48 +0000 (22:51 +0100)
committerLennart Poettering <lennart@poettering.net>
Wed, 7 Jan 2015 22:44:08 +0000 (23:44 +0100)
src/libsystemd/sd-bus/bus-util.c

index 86b83db..bb08e38 100644 (file)
@@ -1760,6 +1760,7 @@ int bus_wait_for_jobs(BusWaitForJobs *d, bool quiet) {
                         if (q < 0 && r == 0)
                                 r = q;
 
+                        errno = 0;
                         log_debug_errno(q, "Got result %s/%m for job %s", strna(d->result), strna(d->name));
                 }