Skip to content

Commit

Permalink
strnstr is FreeBSD only
Browse files Browse the repository at this point in the history
  • Loading branch information
zyc9012 committed Dec 15, 2022
1 parent b36a635 commit 6958864
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ext/nokolexbor/nl_node.c
Original file line number Diff line number Diff line change
Expand Up @@ -285,7 +285,7 @@ mark_node_orders(lxb_dom_node_t *root)
void sort_nodes_if_necessary(VALUE selector, lxb_dom_document_t *doc, lexbor_array_t *array)
{
// No need to sort if there's only one selector, the results are natually in document traversal order
if (strnstr(RSTRING_PTR(selector), ",", RSTRING_LEN(selector)) != NULL)
if (strstr(RSTRING_PTR(selector), ",") != NULL)
{
int need_order = 0;
// Check if we have already markded orders, note that
Expand Down

0 comments on commit 6958864

Please sign in to comment.