aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/gammad.c3
1 files changed, 2 insertions, 1 deletions
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);