1
0
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:
Amitay Isaacs 2016-07-22 14:31:02 +10:00 committed by Stefan Metzmacher
parent dc065b1f35
commit 76c2208f98

View File

@ -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);