diff options
author | Volker Lendecke <vl@samba.org> | 2014-07-29 16:09:10 +0000 |
---|---|---|
committer | Michael Adam <obnox@samba.org> | 2014-07-31 18:49:47 +0200 |
commit | 85c5551618805ff868154e82595592426fe7b6ec (patch) | |
tree | 71a9f06b994cb9daacfe4eedc3954e830c200069 /lib | |
parent | 610bb4a1085681bd850d17735d499798fb3c627f (diff) | |
download | samba-85c5551618805ff868154e82595592426fe7b6ec.tar.gz samba-85c5551618805ff868154e82595592426fe7b6ec.tar.xz samba-85c5551618805ff868154e82595592426fe7b6ec.zip |
debug: Simplify debug_parse_levels
Just some minimal refactoring
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 | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/lib/util/debug.c b/lib/util/debug.c index faa5492c16..49bf204b04 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -413,20 +413,20 @@ static bool debug_parse_params(char **params) bool debug_parse_levels(const char *params_str) { char **params; + bool ok; /* Just in case */ debug_init(); params = str_list_make(NULL, params_str, NULL); - if (debug_parse_params(params)) { + ok = debug_parse_params(params); + if (ok) { debug_dump_status(5); - TALLOC_FREE(params); - return true; - } else { - TALLOC_FREE(params); - return false; } + + TALLOC_FREE(params); + return ok; } /* setup for logging of talloc warnings */ |