Skip to content

Commit 3117034

Browse files
committed
fix
1 parent 0095077 commit 3117034

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

cffi/source.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,9 @@ static LY_ERR pyly_backlinks_find_leafref_nodes_clb(struct lysc_node *node, void
210210
}
211211
pyly_cstr_array_free(leafrefs, nleafrefs);
212212

213-
pyly_strlist_append(dctx->res, lysc_path(node, LYSC_PATH_DATA, NULL, 0));
213+
if (found) {
214+
pyly_strlist_append(dctx->res, lysc_path(node, LYSC_PATH_DATA, NULL, 0));
215+
}
214216

215217
return LY_SUCCESS;
216218
}

0 commit comments

Comments
 (0)