summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrubidium <rubidium@openttd.org>2014-06-09 17:43:59 +0000
committerrubidium <rubidium@openttd.org>2014-06-09 17:43:59 +0000
commit29c2e73ba65d2d54fbf799f2e3ae06f95f7baa51 (patch)
treedca4626e944414f2eed6b0cda5e6209bdf232624 /src
parentad64b99eb091a2265d4d9ae7684c83aaf28d48ff (diff)
downloadopenttd-29c2e73ba65d2d54fbf799f2e3ae06f95f7baa51.tar.xz
(svn r26637) -Fix [FS#6038]: segmentation fault when encountering a .obg/.obs/.obm with empty string/zero length/ MD5 checksums
Diffstat (limited to 'src')
-rw-r--r--src/base_media_func.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/base_media_func.h b/src/base_media_func.h
index 650506f90..e3678d5a1 100644
--- a/src/base_media_func.h
+++ b/src/base_media_func.h
@@ -100,7 +100,7 @@ bool BaseSet<T, Tnum_files, Tsearch_in_tars>::FillSetDetails(IniFile *ini, const
/* Then find the MD5 checksum */
item = md5s->GetItem(filename, false);
- if (item == NULL) {
+ if (item == NULL || item->value == NULL) {
DEBUG(grf, 0, "No MD5 checksum specified for: %s (in %s)", filename, full_filename);
return false;
}