commit | 7f45cf2002cc47e61f6fc5e715902888188e252f | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Oct 01 12:49:44 2020 +0200 |
committer | GitHub <noreply@github.com> | Thu Oct 01 12:49:44 2020 +0200 |
tree | a6e99f087dbd6424234e47dc7625efef5b20b143 | |
parent | a1c1e54a3a7787970f629b59c3d22a81b4c9e6f2 [diff] [blame] |
libyang REFACTOR applying deviations, augments, and refines (#1217) They are no longer applied as part of their definition module compilation but instead their target module compilation.
diff --git a/src/xpath.c b/src/xpath.c index be4d59c..a1376b4 100644 --- a/src/xpath.c +++ b/src/xpath.c
@@ -2956,6 +2956,10 @@ struct lyxp_expr *dup = NULL; uint32_t i, j; + if (!exp) { + goto cleanup; + } + dup = calloc(1, sizeof *dup); LY_CHECK_ERR_GOTO(!dup, LOGMEM(ctx); ret = LY_EMEM, cleanup);