git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b0221d5
)
debug: Remove an "else"
author
Volker Lendecke
<vl@samba.org>
Tue, 29 Jul 2014 15:59:06 +0000
(15:59 +0000)
committer
Michael Adam
<obnox@samba.org>
Thu, 31 Jul 2014 16:49:47 +0000
(18:49 +0200)
No else necessary, we just did a "goto done:"
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/util/debug.c
patch
|
blob
|
history
diff --git
a/lib/util/debug.c
b/lib/util/debug.c
index d96fcc5322f13a1df108ee015a0e090614097d35..6f2c3099d4b34584033f76f24fa194da6fa75481 100644
(file)
--- a/
lib/util/debug.c
+++ b/
lib/util/debug.c
@@
-784,7
+784,9
@@
static int Debug1( const char *format_str, ... )
goto done;
- } else if ( state.logtype != DEBUG_FILE ) {
+ }
+
+ if ( state.logtype != DEBUG_FILE ) {
va_start( ap, format_str );
if (state.fd > 0)
(void)vdprintf( state.fd, format_str, ap );