Skip to content

Commit f0c2fb1

Browse files
fix warning in api_test
1 parent 4e7da18 commit f0c2fb1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

api_test/main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1179,7 +1179,7 @@ static void check_markdown_plaintext(test_batch_runner *runner, char *markdown)
11791179
cmark_node *textNode = cmark_node_first_child(pg);
11801180
INT_EQ(runner, cmark_node_get_type(textNode), CMARK_NODE_TEXT, "markdown '%s' did not produce a text node inside the paragraph node", markdown);
11811181
const char *text = cmark_node_get_literal(textNode);
1182-
OK(runner, text, "Text literal for '%s' was null", markdown);
1182+
OK(runner, (text != NULL), "Text literal for '%s' was null", markdown);
11831183
if (text) {
11841184
STR_EQ(runner, text, markdown, "markdown '%s' resulted in '%s'", markdown, text);
11851185
} else {

0 commit comments

Comments
 (0)