Skip to content

Commit 64a2286

Browse files
committed
MSVC improvements
1 parent 2a9535b commit 64a2286

1 file changed

Lines changed: 2 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,8 @@ jobs:
3434
3535
int main(void) {
3636
char* x = NULL;
37-
int len = 0;
38-
int rc = c89stringutils_asprintf(&x, &len, "hello %s", "world");
39-
if (rc == 0 && x != NULL) {
37+
int rc = c89stringutils_asprintf(&x, "hello %s", "world");
38+
if (rc > 0 && x != NULL) {
4039
printf("%s\n", x);
4140
free(x);
4241
return 0;

0 commit comments

Comments
 (0)