diff options
author | Peter Schauer <pes@regent.e-technik.tu-muenchen.de> | 1998-05-15 23:02:07 +0000 |
---|---|---|
committer | Jeff Law <law@gcc.gnu.org> | 1998-05-15 17:02:07 -0600 |
commit | 63586755e5e855664ad5827050870bb9c18f70c5 (patch) | |
tree | 7a54673f5886050aac95dec5504593ac43498985 /libiberty | |
parent | d2f2cb195c121b8018aafd2285e6ea123a9de1af (diff) | |
download | gcc-63586755e5e855664ad5827050870bb9c18f70c5.zip gcc-63586755e5e855664ad5827050870bb9c18f70c5.tar.gz gcc-63586755e5e855664ad5827050870bb9c18f70c5.tar.bz2 |
cplus-dem.c (cplus_demangle_opname): Initialize work.
* cplus-dem.c (cplus_demangle_opname): Initialize work.
Bring over from devo.
From-SVN: r19787
Diffstat (limited to 'libiberty')
-rw-r--r-- | libiberty/ChangeLog | 4 | ||||
-rw-r--r-- | libiberty/cplus-dem.c | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 89ee87b..b99961f 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -7,6 +7,10 @@ Wed May 13 14:24:38 1998 Kaveh R. Ghazi <ghazi@caip.rutgers.edu> replace with `size_t i' at each location where it is used. (cplus_mangle_opname): change type of `i' from int to size_t. +Fri May 1 04:26:25 1998 Peter Schauer <pes@regent.e-technik.tu-muenchen.de> + + * cplus-dem.c (cplus_demangle_opname): Initialize work. + Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod <amacleod@cygnus.com> * cplus-dem.c (demangle_qualified): Replace missing else. diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index 8f68091..c5bcc47 100644 --- a/libiberty/cplus-dem.c +++ b/libiberty/cplus-dem.c @@ -430,6 +430,7 @@ cplus_demangle_opname (opname, result, options) len = strlen(opname); result[0] = '\0'; ret = 0; + memset ((char *) work, 0, sizeof (work)); work->options = options; if (opname[0] == '_' && opname[1] == '_' |