summaryrefslogtreecommitdiff
path: root/binutils/windres.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@bigpond.net.au>2002-05-05 23:25:27 +0000
committerAlan Modra <amodra@bigpond.net.au>2002-05-05 23:25:27 +0000
commit23e6107b767f8a93ac4f8314d44ad8077a0c29d8 (patch)
tree9f8f08e8b641aa44041e81a7d6442ea93a7c36ad /binutils/windres.c
parent59c950ab95ab98cd9fc795720658a29c14511166 (diff)
downloadbinutils-redhat-23e6107b767f8a93ac4f8314d44ad8077a0c29d8.tar.gz
* dlltool.c (process_def_file): Add missing prototype.
(new_directive, assemble_file, main): Likewise. (process_def_file, new_directive): Make static. (inform): Rewrite using VA_FIXEDARG. * dllwrap.c (mybasename): Add missing prototype. (strhash, main): Likewise. (inform): Rewrite using VA_FIXEDARG. (warn): Likewise. (cleanup_and_exit): Use old style function definition. (strhash): Likewise. * windres.c (define_resource): Use one memset to clear all of struct res_resource.
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 15483530b3..27cc0f0e48 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;
}