From e4591b7b9e84a3be845f0385acfa538d84d3294d Mon Sep 17 00:00:00 2001
From: Martin Stjernholm <mast@lysator.liu.se>
Date: Sat, 25 Apr 2009 23:58:07 +0200
Subject: [PATCH] Use a fatal for alloc errors in low_make_buf_space.

It's used in too many places that don't handle pike errors (e.g. from within
the compiler).
---
 .gitattributes       | 1 -
 src/dynamic_buffer.c | 4 ++--
 2 files changed, 2 insertions(+), 3 deletions(-)

diff --git a/.gitattributes b/.gitattributes
index 319f0af9a4..d2f6f547df 100644
--- a/.gitattributes
+++ b/.gitattributes
@@ -357,7 +357,6 @@ testfont binary
 /src/dmalloc.h foreign_ident
 /src/docode.h foreign_ident
 /src/dumpmaster.pike foreign_ident
-/src/dynamic_buffer.c foreign_ident
 /src/dynamic_buffer.h foreign_ident
 /src/dynamic_load.c foreign_ident
 /src/dynamic_load.h foreign_ident
diff --git a/src/dynamic_buffer.c b/src/dynamic_buffer.c
index 19d4c42c8f..a1379d597d 100644
--- a/src/dynamic_buffer.c
+++ b/src/dynamic_buffer.c
@@ -2,7 +2,7 @@
 || 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: dynamic_buffer.c,v 1.27 2008/07/16 01:08:05 mast Exp $
+|| $Id$
 */
 
 #include "global.h"
@@ -30,7 +30,7 @@ PMOD_EXPORT char *low_make_buf_space(ptrdiff_t space, dynamic_buffer *buf)
 
     buf->s.str=(char *)realloc(buf->s.str, buf->bufsize);
     if(!buf->s.str)
-      Pike_error("Out of memory.\n");
+      Pike_fatal("Out of memory.\n");
   }
   ret = buf->s.str + buf->s.len;
   buf->s.len += space;
-- 
GitLab