cplus-dem.c (cplus_demangle_opname): Initialize work.
authorPeter Schauer <pes@regent.e-technik.tu-muenchen.de>
Fri, 15 May 1998 23:02:07 +0000 (23:02 +0000)
committerJeff Law <law@gcc.gnu.org>
Fri, 15 May 1998 23:02:07 +0000 (17:02 -0600)
        * cplus-dem.c (cplus_demangle_opname):  Initialize work.
Bring over from devo.

From-SVN: r19787

libiberty/ChangeLog
libiberty/cplus-dem.c

index 89ee87b861db8b56af5ab34c6263391ca1770ca7..b99961fc9c0d43bc03f5fcc392e7684fc50f24cc 100644 (file)
@@ -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.
index 8f6809100c5fa2e46bb8daf0ea3b1c03290a7b9c..c5bcc47664c79384d06eae9f0a670c5194acdaa0 100644 (file)
@@ -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] == '_'