diff options
author | Alan Modra <amodra@gmail.com> | 2002-05-05 23:25:27 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2002-05-05 23:25:27 +0000 |
commit | e80ff7de61a36e1f05da73ff3f2cddb39c7ba591 (patch) | |
tree | 14fadbfa703daa8d9fb3f6e953c142ecd09f498f /binutils/windres.c | |
parent | 405c98a4e3e0a6c0d9380852e2e82dbeca7edf56 (diff) | |
download | binutils-gdb-e80ff7de61a36e1f05da73ff3f2cddb39c7ba591.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.c | 4 |
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; } |