diff options
| author | jvoisin | 2025-10-28 21:33:16 +0100 |
|---|---|---|
| committer | jvoisin | 2025-10-28 21:54:31 +0100 |
| commit | 89b628d34b1ef0423df35a72901daa194d7db956 (patch) | |
| tree | 2163e0ab79f62766a09c7057ccb508f6c60a064a /tests/test_fgetws_static.c | |
| parent | a826c69242b0e87a4e5d6817b7e46ab3cdbe6284 (diff) | |
Fix the CI on clang
Apparently, clang doesn't like the `putwchar` function for no good reason.
Replacing it with `printf` fixes a NULL-ptr deref, so let's do that, as we
don't really care about the content of the buffer anyway, only that it's not
optimized away.
Diffstat (limited to 'tests/test_fgetws_static.c')
| -rw-r--r-- | tests/test_fgetws_static.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_fgetws_static.c b/tests/test_fgetws_static.c index a02653f..361d4f4 100644 --- a/tests/test_fgetws_static.c +++ b/tests/test_fgetws_static.c | |||
| @@ -10,6 +10,6 @@ int main(int argc, char** argv) { | |||
| 10 | fgetws(buffer, 14, NULL); | 10 | fgetws(buffer, 14, NULL); |
| 11 | CHK_FAIL_END | 11 | CHK_FAIL_END |
| 12 | 12 | ||
| 13 | putwchar(buffer[0]); | 13 | printf("%ls\n", buffer); |
| 14 | return ret; | 14 | return ret; |
| 15 | } | 15 | } |
