---
mingw-w64-crt/profile/profil.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/mingw-w64-crt/profile/profil.c b/mingw-w64-crt/profile/profil.c
index 0c0387136..c566bb6dd 100644
--- a/mingw-w64-crt/profile/profil.c
+++ b/mingw-w64-crt/profile/profil.c
@@ -185,7 +185,7 @@ profile_ctl (struct profinfo * p, char *samples, size_t
size,
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;
--
2.48.1
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public