summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsmatz <smatz@openttd.org>2010-09-06 16:02:42 +0000
committersmatz <smatz@openttd.org>2010-09-06 16:02:42 +0000
commit29cec22a2e5e0b39437714cbb26c9ad4a5c9bdea (patch)
tree0984073bb088b9427147059fcc441e5a63102e38 /src
parent8909a5a2da87df0624a075b7eda6be346958b17e (diff)
downloadopenttd-29cec22a2e5e0b39437714cbb26c9ad4a5c9bdea.tar.xz
(svn r20756) -Cleanup: no need to check return value of CallocT
Diffstat (limited to 'src')
-rw-r--r--src/newgrf.cpp2
1 files changed, 0 insertions, 2 deletions
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<GRFFile>(1);
- if (newfile == NULL) error ("Out of memory");
-
newfile->filename = strdup(config->filename);
newfile->sprite_offset = sprite_offset;