Branch: Tag:

2009-04-21

2009-04-21 17:48:14 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed bug in AGGR_ARR_EPILOGUE() (aka END_AGGREGATE_ARRAY()) that caused the empty array to always be returned if there were no unaggragated elements on the stack at END_AGGREGATE_ARRAY.

Fixes LysLysKOM 17483127.

Rev: src/array.h:1.83

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: array.h,v 1.82 2008/10/01 23:45:05 mast Exp $ + || $Id: array.h,v 1.83 2009/04/21 17:48:14 grubba Exp $   */      #ifndef ARRAY_H
261:   #define AGGR_ARR_EPILOGUE(base_sval) do { \    ptrdiff_t diff__ = Pike_sp - base_sval; \    if (!diff__) { \ -  if (base_sval[-1].u.array->size) { \ +  if (!base_sval[-1].u.array->size) { \    free_array (base_sval[-1].u.array); \    add_ref (base_sval[-1].u.array = &empty_array); \    } \