1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-28 01:58:17 +03:00

debug: Simplify debug_parse_levels

Just some minimal refactoring

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
Volker Lendecke 2014-07-29 16:09:10 +00:00 committed by Michael Adam
parent 610bb4a108
commit 85c5551618

View File

@ -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 */