Branch: Tag:

2009-07-22

2009-07-22 12:46:43 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Fixed uninitialized field in SET_ONERROR().

Rev: src/pike_error.h:1.53

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: pike_error.h,v 1.52 2008/12/29 10:55:20 grubba Exp $ + || $Id: pike_error.h,v 1.53 2009/07/22 12:46:43 grubba Exp $   */      #ifndef PIKE_ERROR_H
170:    X.func=(error_call)(Y); \    DO_IF_DMALLOC( if( X.func == free ) X.func=dmalloc_free); \    X.arg=(void *)(Z); \ -  if(!Pike_interpreter.recoveries) break; \ +  if(!Pike_interpreter.recoveries) { \ +  X.previous = NULL; \ +  break; \ +  } \    X.previous=Pike_interpreter.recoveries->onerror; \    X.file = __FILE__; \    X.line = __LINE__; \