diff options
author | Volker Lendecke <vl@samba.org> | 2014-07-29 15:47:07 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-07-31 18:49:47 +0200 |
commit | b0221d58f9f17227246d479cbbe334093f9e08be (patch) | |
tree | 139ca13ffe4ba112ce2031aa446f43ee7839e2f5 /lib | |
parent | 1929b1fa20a43a1c78d08e0c28523f00da9a3411 (diff) | |
download | samba-b0221d58f9f17227246d479cbbe334093f9e08be.tar.gz |
debug: Remove two pointless assignments
"goto done:" jumps to that exact assignment :-)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util/debug.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c index 9fdad54edb9..d96fcc5322f 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; |