diff options
author | José Bollo <jose.bollo@iot.bzh> | 2017-09-14 13:34:37 +0200 |
---|---|---|
committer | José Bollo <jose.bollo@iot.bzh> | 2017-10-09 14:08:28 +0200 |
commit | 8be63ed03413ee79bb3aa3900950f695eb511960 (patch) | |
tree | 8893e9276bd7016561700976e544245aa969d0fe | |
parent | 6634329b7a1a94aa1555649b933010fb9fcd0381 (diff) |
verbose: Fix wrong error report
Change-Id: I0718204c52ccb4c28c2380c947b7db60b8785ead
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
-rw-r--r-- | src/verbose.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/verbose.c b/src/verbose.c index b8751069..f330c6f5 100644 --- a/src/verbose.c +++ b/src/verbose.c @@ -126,6 +126,7 @@ static void _vverbose_(int loglevel, const char *file, int line, const char *fun n = 2; if (fmt) { iov[n].iov_base = buffer; + errno = saverr; rc = vsnprintf(buffer, sizeof buffer, fmt, args); if (rc < 0) rc = 0; |