mirror of
https://github.com/ZDoom/qzdoom-gpl.git
synced 2024-11-16 01:02:03 +00:00
- Fixed: FStringTable::operator[] would crash when passed a NULL string pointer.
SVN r3401 (trunk)
This commit is contained in:
parent
676ce338b1
commit
64fb6410cf
1 changed files with 4 additions and 0 deletions
|
@ -324,6 +324,10 @@ size_t FStringTable::ProcessEscapes (char *iptr)
|
|||
// Finds a string by name and returns its value
|
||||
const char *FStringTable::operator[] (const char *name) const
|
||||
{
|
||||
if (name == NULL)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
DWORD bucket = MakeKey (name) & (HASH_SIZE - 1);
|
||||
StringEntry *entry = Buckets[bucket];
|
||||
|
||||
|
|
Loading…
Reference in a new issue