crt: Avoid memset call in profile_ctl.
In preparation for building the CRT with -fno-builtin. This allows the compiler
to zero memory without making an actual library call.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
diff --git a/mingw-w64-crt/profile/profil.c b/mingw-w64-crt/profile/profil.c
index 0c03871..c566bb6 100644
--- a/mingw-w64-crt/profile/profil.c
+++ b/mingw-w64-crt/profile/profil.c
@@ -185,7 +185,7 @@
if (scale)
{
memset (samples, 0, size);
- memset (p, 0, sizeof *p);
+ *p = (struct profinfo){0};
maxbin = size >> 1;
prof.counter = (u_short *) samples;
prof.lowpc = offset;