aboutsummaryrefslogtreecommitdiff
path: root/binutils/windres.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-05-05 23:25:27 +0000
committerAlan Modra <amodra@gmail.com>2002-05-05 23:25:27 +0000
commite80ff7de61a36e1f05da73ff3f2cddb39c7ba591 (patch)
tree14fadbfa703daa8d9fb3f6e953c142ecd09f498f /binutils/windres.c
parent405c98a4e3e0a6c0d9380852e2e82dbeca7edf56 (diff)
downloadgdb-e80ff7de61a36e1f05da73ff3f2cddb39c7ba591.zip
gdb-e80ff7de61a36e1f05da73ff3f2cddb39c7ba591.tar.gz
gdb-e80ff7de61a36e1f05da73ff3f2cddb39c7ba591.tar.bz2
* 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 1548353..27cc0f0 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;
}