summaryrefslogtreecommitdiffstats
path: root/lib/util/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/util/debug.c')
-rw-r--r--lib/util/debug.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c
index 9fdad54edb..d96fcc5322 100644
--- a/lib/util/debug.c
+++ b/lib/util/debug.c
@@ -789,7 +789,6 @@ static int Debug1( const char *format_str, ... )
if (state.fd > 0)
(void)vdprintf( state.fd, format_str, ap );
va_end( ap );
- errno = old_errno;
goto done;
}
@@ -802,7 +801,6 @@ static int Debug1( const char *format_str, ... )
int fd = open( state.debugf, O_WRONLY|O_APPEND|O_CREAT, 0644 );
(void)umask( oldumask );
if(fd == -1) {
- errno = old_errno;
goto done;
}
state.fd = fd;