Branch: Tag:

2006-03-02

2006-03-02 10:25:40 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fix for the bug noted in LysLysKOM 14180500, where reused local variables weren't cleared properly.

Rev: src/docode.c:1.186
Rev: src/language.yacc:1.368
Rev: src/las.c:1.375

2:   || This file is part of Pike. For copyright information see COPYRIGHT.   || Pike is distributed under GPL, LGPL and MPL. See the file COPYING   || for more information. - || $Id: las.c,v 1.374 2006/03/01 20:01:21 grubba Exp $ + || $Id: las.c,v 1.375 2006/03/02 10:25:07 grubba Exp $   */      #include "global.h"
1332:    _CDR(res) = 0;   #endif    res->u.integer.a = var; +  if (depth < 0) { +  /* First appearance of this variable. +  * Add initialization code. +  */ +  res->node_info |= OPT_ASSIGNMENT; +  res->u.integer.b = 0; +  } else {    res->u.integer.b = depth; -  +  }      #ifdef SHARED_NODES    /* FIXME: Not common-subexpression optimized.