aboutsummaryrefslogtreecommitdiffstats
path: root/src/cg-base.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/cg-base.c')
-rw-r--r--src/cg-base.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/cg-base.c b/src/cg-base.c
index d6d2fcb..24bc09f 100644
--- a/src/cg-base.c
+++ b/src/cg-base.c
@@ -841,7 +841,8 @@ LIST_DEPTHS
fail:
rc = 1;
- perror(argv0);
+ if (errno)
+ perror(argv0);
goto done;
cg_fail: