Skip to content

Commit

Permalink
tests (fix): Make sure NULL is a string if attr is NULL
Browse files Browse the repository at this point in the history
  • Loading branch information
andy5995 committed Feb 26, 2024
1 parent 3310424 commit 642c95d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tests/unicode.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Attribute: %s\n", list->key, list->value != NULL ? list->value : "NULL", attr !=
(data[i].value != NULL ? data[i].value : "NULL",
list->value != NULL ? list->value : "NULL") == 0);
fprintf(stderr, "attr: %s\n",
attr != NULL ? attr : NULL);
attr != NULL ? attr : "NULL");
assert(strcmp
(data[i].attribute != NULL ? data[i].attribute : "NULL",
attr != NULL ? attr : "NULL") == 0);
Expand Down

0 comments on commit 642c95d

Please sign in to comment.