From 8be63ed03413ee79bb3aa3900950f695eb511960 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Bollo?= Date: Thu, 14 Sep 2017 13:34:37 +0200 Subject: [PATCH] verbose: Fix wrong error report MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Change-Id: I0718204c52ccb4c28c2380c947b7db60b8785ead Signed-off-by: José Bollo --- src/verbose.c | 1 + 1 file changed, 1 insertion(+) 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; -- 2.16.6