aboutsummaryrefslogtreecommitdiff
path: root/src/helper/log.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/helper/log.c')
-rw-r--r--src/helper/log.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/helper/log.c b/src/helper/log.c
index 785a8bd..b39cb91 100644
--- a/src/helper/log.c
+++ b/src/helper/log.c
@@ -290,7 +290,7 @@ void log_init(void)
if (NULL != debug_env) {
int value;
int retval = parse_int(debug_env, &value);
- if (ERROR_OK == retval &&
+ if (retval == ERROR_OK &&
debug_level >= LOG_LVL_SILENT &&
debug_level <= LOG_LVL_DEBUG_IO)
debug_level = value;