iris

small scheme interpreter
git clone git://git.2f30.org/iris
Log | Files | Refs | LICENSE

commit d9638de1c3ed1091d1cafcb205d41a4dbc605bba
parent 1d6925cb7655981ee846587cf062f188a602aeb6
Author: sin <sin@2f30.org>
Date:   Wed, 14 May 2014 16:11:59 +0100

Die on oom

Diffstat:
Mparser.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/parser.c b/parser.c @@ -12,8 +12,10 @@ newobject(void) struct object *o; o = calloc(1, sizeof(*o)); - if (!o) - return NULL; + if (!o) { + perror("calloc"); + exit(EXIT_FAILURE); + } return o; }