xpath BUGFIX change malloc to calloc to prevent conditional jump depend on uninicialized value. Value inverted have to be set in variable type lysc_pattern when ly_type_validate_patterns function is called
diff --git a/src/xpath.c b/src/xpath.c
index db21634..bd66a34 100644
--- a/src/xpath.c
+++ b/src/xpath.c
@@ -4592,7 +4592,7 @@
     LY_CHECK_RET(rc);
 
     LY_ARRAY_NEW_RET(set->ctx, patterns, pattern, LY_EMEM);
-    *pattern = malloc(sizeof **pattern);
+    *pattern = calloc(1, sizeof **pattern);
     LOG_LOCSET(NULL, set->cur_node, NULL, NULL);
     rc = lys_compile_type_pattern_check(set->ctx, args[1]->val.str, &(*pattern)->code);
     LOG_LOCBACK(0, 1, 0, 0);