Skip to content

Commit

Permalink
Merge pull request #15 from PDXostc/fix-similarily-named-parent-bug
Browse files Browse the repository at this point in the history
Fixed issue where multiple parent nodes to a signal shared the same b…
  • Loading branch information
magnusfeuer authored May 6, 2019
2 parents 0a85da9 + dcbcc31 commit 54065b2
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion vsd.c
Original file line number Diff line number Diff line change
Expand Up @@ -651,7 +651,8 @@ int vsd_find_signal_by_path(vsd_context_t* context,
vsd_signal_list_for_each(&((vsd_signal_branch_t*) root_signal)->children,
lambda(uint8_t,
(vsd_signal_node_t* node, void* _ud) {
if (!strncmp(path, node->data->name, path_len)) {
if (!strncmp(path, node->data->name, path_len) &&
strlen(node->data->name) == path_len) {
loc_res = node->data;
return 0;
}
Expand Down

0 comments on commit 54065b2

Please sign in to comment.