From af4131429570f5e6856defc0c36220c0255dcc90 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sun, 10 Jul 2016 22:01:09 +0200 Subject: m MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/gammad.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src') diff --git a/src/gammad.c b/src/gammad.c index 5d4ecbd..54d2109 100644 --- a/src/gammad.c +++ b/src/gammad.c @@ -235,7 +235,8 @@ int main(int argc, char** argv) return rc; /* Fail */ fail: - perror(argv0); + if (errno != 0) + perror(argv0); goto done; fail_libgamma: libgamma_perror(argv0, gerror); -- cgit v1.2.3-70-g09d2