Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
dpazj committed May 23, 2024
1 parent d039bcf commit 443dd65
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 1 addition & 1 deletion src/Nodeset.c
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ NL_BrowseName extractBrowseName(const NamespaceList *namespaces, char *s)
bn.name = NULL;
if (!s) return bn;
char *bnName = strchr(s, ':');
if (bnName == NULL || *(bnName + 1) == '\0')
if (bnName == NULL)
{
bn.name = s;
return bn;
Expand Down
4 changes: 0 additions & 4 deletions tests/invalidNodeDefinitions.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,6 @@
</NamespaceUris>
<UAObject>
</UAObject>
<UAObject BrowseName="Invalid">
</UAObject>
<UAObject BrowseName="1:">
</UAObject>
<UAObject BrowseName="1">
</UAObject>
</UANodeSet>

0 comments on commit 443dd65

Please sign in to comment.