libyang MAINTENANCE code formatting
diff --git a/src/log.c b/src/log.c
index 0927430..d4fbf58 100644
--- a/src/log.c
+++ b/src/log.c
@@ -124,7 +124,7 @@
     char *msg = NULL;
     struct ly_err_item *e;
 
-    if (!err || ecode == LY_SUCCESS) {
+    if (!err || (ecode == LY_SUCCESS)) {
         /* nothing to do */
         return ecode;
     }