Branch: Tag:

2010-09-27

2010-09-27 17:06:30 by Henrik Grubbström (Grubba) <grubba@grubba.org>

Unlink ONERROR's before calling them to avoid recursion on error.

Fixes LysLysKOM 18719549/Pike mailinglist 12047.
Thanks to Artur Skawina <art.08.09@gmail.com> for the report.

Rev: src/error.c:1.170
Rev: src/pike_error.h:1.56
Rev: src/testsuite.in:1.899

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.55 2010/02/19 10:15:49 srb Exp $ + || $Id: pike_error.h,v 1.56 2010/09/27 17:05:57 grubba Exp $   */      #ifndef PIKE_ERROR_H
231:   #endif /* PIKE_DEBUG */      #define CALL_AND_UNSET_ONERROR(X) do { \ -  X.func(X.arg); \ +     UNSET_ONERROR(X); \ -  +  X.func(X.arg); \    }while(0)      #if defined(PIKE_DEBUG) && 0