mirror of
https://github.com/samba-team/samba.git
synced 2024-12-23 17:34:34 +03:00
ctdb-logging: Fix for loop condition
Signed-off-by: Amitay Isaacs <amitay@gmail.com> Reviewed-by: Martin Schwenke <martin@meltin.net> Reviewed-by: Michael Adam <obnox@samba.org>
This commit is contained in:
parent
8534408e03
commit
64ef27b27f
@ -36,7 +36,7 @@ bool debug_level_parse(const char *log_string, enum debug_level *log_level)
|
||||
{
|
||||
int i;
|
||||
|
||||
for (i=0; ARRAY_SIZE(log_string_map); i++) {
|
||||
for (i=0; i<ARRAY_SIZE(log_string_map); i++) {
|
||||
if (strcasecmp(log_string_map[i].log_string,
|
||||
log_string) == 0) {
|
||||
*log_level = log_string_map[i].log_level;
|
||||
|
Loading…
Reference in New Issue
Block a user