commit | 16385f4e1fbfe24716be6737f91e1b23aae70d54 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Tue May 18 16:16:09 2021 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Tue May 18 16:16:09 2021 +0200 |
tree | 7261c8ceadb1bbc33165e3411dc4a55adc89a7e4 | |
parent | 50cc0565558cd9e6f01a7ed1b5101e8c64c383f7 [diff] |
data tree MAINTENANCE use macro
diff --git a/src/tree_data.c b/src/tree_data.c index b2fe0b0..c864d7b 100644 --- a/src/tree_data.c +++ b/src/tree_data.c
@@ -3818,7 +3818,7 @@ LY_CHECK_ARG_RET(NULL, node, NULL); if (buffer) { - LY_CHECK_ARG_RET(node->schema->module->ctx, buflen > 1, NULL); + LY_CHECK_ARG_RET(LYD_CTX(node), buflen > 1, NULL); is_static = 1; } else { buflen = 0;