From 29cec22a2e5e0b39437714cbb26c9ad4a5c9bdea Mon Sep 17 00:00:00 2001 From: smatz Date: Mon, 6 Sep 2010 16:02:42 +0000 Subject: (svn r20756) -Cleanup: no need to check return value of CallocT --- src/newgrf.cpp | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') diff --git a/src/newgrf.cpp b/src/newgrf.cpp index 7dd07a16f..d26e8973d 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; -- cgit v1.2.3-54-g00ecf