git.samba.org
/
jlayton
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
dc065b1
)
ctdb-common: Fix parsing of debug level
author
Amitay Isaacs
<amitay@gmail.com>
Fri, 22 Jul 2016 04:31:02 +0000
(14:31 +1000)
committer
Stefan Metzmacher
<metze@samba.org>
Thu, 28 Jul 2016 03:00:16 +0000
(
05:00
+0200)
Signed-off-by: Amitay Isaacs <amitay@gmail.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
Reviewed-by: Martin Schwenke <martin@meltin.net>
ctdb/common/logging.c
patch
|
blob
|
history
diff --git
a/ctdb/common/logging.c
b/ctdb/common/logging.c
index f2304715c8d7776ef3728a010bfd956dd87a8605..4b7b4e5f67d92e7f3323945a56a7c19754955e55 100644
(file)
--- a/
ctdb/common/logging.c
+++ b/
ctdb/common/logging.c
@@
-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);