diff options
author | Nobuyoshi Nakada <[email protected]> | 2024-05-29 14:03:52 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <[email protected]> | 2024-05-29 14:53:33 +0900 |
commit | f630b24d7a08bb045f9aa7911bcd3477ebc6aba2 () | |
tree | efec6f2317044f284c65206b8ee474dc4273d262 | |
parent | 1a31d38c564d14dc5ba0226b85c8adeed8b8f1a5 (diff) |
Fix `calloc` arguments order for -Wcalloc-transposed-args
-rw-r--r-- | win32/win32.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1950,7 +1950,7 @@ w32_cmdvector(const WCHAR *cmd, char ***vec, UINT cp, rb_encoding *enc) } } - curr = (NtCmdLineElement *)calloc(sizeof(NtCmdLineElement), 1); if (!curr) goto do_nothing; curr->str = rb_w32_wstr_to_mbstr(cp, base, len, &curr->len); curr->flags |= NTMALLOC; @@ -2156,7 +2156,7 @@ w32_wopendir(const WCHAR *wpath) // // Get us a DIR structure // - p = calloc(sizeof(DIR), 1); if (p == NULL) return NULL; |