aboutsummaryrefslogtreecommitdiff
path: root/libiberty/cplus-dem.c
diff options
context:
space:
mode:
authorPeter Schauer <pes@regent.e-technik.tu-muenchen.de>1998-05-15 23:02:07 +0000
committerJeff Law <law@gcc.gnu.org>1998-05-15 17:02:07 -0600
commit63586755e5e855664ad5827050870bb9c18f70c5 (patch)
tree7a54673f5886050aac95dec5504593ac43498985 /libiberty/cplus-dem.c
parentd2f2cb195c121b8018aafd2285e6ea123a9de1af (diff)
downloadgcc-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/cplus-dem.c')
-rw-r--r--libiberty/cplus-dem.c1
1 files changed, 1 insertions, 0 deletions
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] == '_'