From 63586755e5e855664ad5827050870bb9c18f70c5 Mon Sep 17 00:00:00 2001 From: Peter Schauer Date: Fri, 15 May 1998 23:02:07 +0000 Subject: [PATCH] cplus-dem.c (cplus_demangle_opname): Initialize work. * cplus-dem.c (cplus_demangle_opname): Initialize work. Bring over from devo. From-SVN: r19787 --- libiberty/ChangeLog | 4 ++++ libiberty/cplus-dem.c | 1 + 2 files changed, 5 insertions(+) diff --git a/libiberty/ChangeLog b/libiberty/ChangeLog index 89ee87b861d..b99961fc9c0 100644 --- a/libiberty/ChangeLog +++ b/libiberty/ChangeLog @@ -7,6 +7,10 @@ Wed May 13 14:24:38 1998 Kaveh R. Ghazi 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 + + * cplus-dem.c (cplus_demangle_opname): Initialize work. + Mon Apr 27 15:53:30 EDT 1998 Andrew MacLeod * cplus-dem.c (demangle_qualified): Replace missing else. diff --git a/libiberty/cplus-dem.c b/libiberty/cplus-dem.c index 8f6809100c5..c5bcc47664c 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] == '_'