commit | 0b24538826293773ee1beb1a675dd85054238279 | [log] [tgz] |
---|---|---|
author | Michal Vasko <mvasko@cesnet.cz> | Thu Jul 09 15:43:52 2020 +0200 |
committer | Michal Vasko <mvasko@cesnet.cz> | Thu Jul 09 15:44:03 2020 +0200 |
tree | 42fa00d81882794fd984eb91213a9aacb1fa21c7 | |
parent | b3ddccb07a44fc65db26ffe3c15d38e360eda1c3 [diff] [blame] |
data tree BUGFIX wrong variable used
diff --git a/src/tree_data.c b/src/tree_data.c index 6b5a4e7..758bd2a 100644 --- a/src/tree_data.c +++ b/src/tree_data.c
@@ -907,7 +907,7 @@ /* find the module */ if (prefix) { - str = strndup(name, name_len); + str = strndup(prefix, pref_len); module = ly_ctx_get_module_implemented(ctx, str); free(str); LY_CHECK_ERR_RET(!module, LOGERR(ctx, LY_EINVAL, "Module \"%.*s\" not found.", pref_len, prefix), NULL);