Piotr Caban (@piotr) commented about dlls/msvcrt/tests/string.c:
expect_bin(buf, "\x00\xff", 2); }
- memset(buf, 0xff, sizeof(buf));
- errno = 0xdeadbeef;
- ret = _mbsncpy(NULL, mbstring, 1);
- ok(ret == NULL, "_mbsncpy returned %p, expected NULL\n", ret);
- ok(errno == EINVAL, "_mbsncpy returned %d\n", errno);
There's no need to memset `buf` here. It's not used in the test.