From 1f8983fadd7a16fe8830fe8433e50f97d25970a6 Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 6 Sep 2010 16:02:42 +0000 Subject: [PATCH] (svn r20756) -Cleanup: no need to check return value of CallocT --- src/newgrf.cpp | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 7dd07a16fc..d26e8973de 100644 --- a/src/newgrf.cpp +++ b/src/newgrf.cpp @@ -7108,8 +7108,6 @@ static void InitNewGRFFile(const GRFConfig *config, int sprite_offset) newfile = CallocT(1); - if (newfile == NULL) error ("Out of memory"); - newfile->filename = strdup(config->filename); newfile->sprite_offset = sprite_offset;