aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'binutils/windres.c')
-rw-r--r--binutils/windres.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/binutils/windres.c b/binutils/windres.c
index 15483530b3f..27cc0f0e485 100644
--- a/binutils/windres.c
+++ b/binutils/windres.c
@@ -443,11 +443,9 @@ define_resource (resources, cids, ids, dupok)
re->u.res = ((struct res_resource *)
res_alloc (sizeof (struct res_resource)));
+ memset (re->u.res, 0, sizeof (struct res_resource));
re->u.res->type = RES_TYPE_UNINITIALIZED;
- memset (&re->u.res->res_info, 0, sizeof (struct res_res_info));
- memset (&re->u.res->coff_info, 0, sizeof (struct res_coff_info));
-
return re->u.res;
}