fixed bug #463839
[fw/sdcc] / src / SDCCast.c
index 89b365c48ffe9104ca8aa360620cdf9ea4129c2c..0a429066c6c0114f565ce4224a0d5a1aeac55ca7 100644 (file)
@@ -1107,7 +1107,7 @@ gatherAutoInit (symbol * autoChain)
          /* insert the symbol into the symbol table */
          /* with level = 0 & name = rname       */
          newSym = copySymbol (sym);
-         addSym (SymbolTab, newSym, newSym->name, 0, 0, 1);
+         addSym (SymbolTab, newSym, newSym->rname, 0, 0, 1);
 
          /* now lift the code to main */
          if (IS_AGGREGATE (sym->type))