mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-common: Fix parsing of debug level
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Andrew Bartlett <abartlet@samba.org> Reviewed-by: Martin Schwenke <martin@meltin.net>
This commit is contained in:
parent
dc065b1f35
commit
76c2208f98
@ -37,6 +37,10 @@ bool debug_level_parse(const char *log_string, enum debug_level *log_level)
|
||||
{
|
||||
int i;
|
||||
|
||||
if (log_string == NULL) {
|
||||
return false;
|
||||
}
|
||||
|
||||
if (isdigit(log_string[0])) {
|
||||
int level = atoi(log_string);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user