Branch: Tag:

2010-10-10

2010-10-10 21:56:29 by Martin Stjernholm <mast@lysator.liu.se>

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).

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: dynamic_buffer.c,v 1.27 2008/07/16 01:08:05 mast Exp $ + || $Id$   */      #include "global.h"
30:       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;