[GRASS-SVN] r40465 - grass/trunk/lib/gis
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jan 16 02:53:40 EST 2010
Author: glynn
Date: 2010-01-16 02:53:39 -0500 (Sat, 16 Jan 2010)
New Revision: 40465
Modified:
grass/trunk/lib/gis/error.c
Log:
Protect against fatal error handlers calling G_fatal_error()
Modified: grass/trunk/lib/gis/error.c
===================================================================
--- grass/trunk/lib/gis/error.c 2010-01-16 06:06:00 UTC (rev 40464)
+++ grass/trunk/lib/gis/error.c 2010-01-16 07:53:39 UTC (rev 40465)
@@ -146,8 +146,13 @@
*/
void G_fatal_error(const char *msg, ...)
{
+ static int busy;
va_list ap;
+ if (busy)
+ exit(EXIT_FAILURE);
+ busy = 1;
+
va_start(ap, msg);
vfprint_error(ERR, msg, ap);
va_end(ap);
More information about the grass-commit
mailing list