mirror of
https://github.com/ZDoom/gzdoom-last-svn.git
synced 2025-06-02 02:01:19 +00:00
* Updated to ZDoom r3401:
- Fixed: FStringTable::operator[] would crash when passed a NULL string pointer. git-svn-id: http://mancubus.net/svn/hosted/gzdoom/trunk@1296 b0f79afe-0144-0410-b225-9a4edf0717df
This commit is contained in:
parent
bc9caf74dc
commit
2df1e3d3fb
2 changed files with 6 additions and 2 deletions
|
@ -324,6 +324,10 @@ size_t FStringTable::ProcessEscapes (char *iptr)
|
||||||
// Finds a string by name and returns its value
|
// Finds a string by name and returns its value
|
||||||
const char *FStringTable::operator[] (const char *name) const
|
const char *FStringTable::operator[] (const char *name) const
|
||||||
{
|
{
|
||||||
|
if (name == NULL)
|
||||||
|
{
|
||||||
|
return NULL;
|
||||||
|
}
|
||||||
DWORD bucket = MakeKey (name) & (HASH_SIZE - 1);
|
DWORD bucket = MakeKey (name) & (HASH_SIZE - 1);
|
||||||
StringEntry *entry = Buckets[bucket];
|
StringEntry *entry = Buckets[bucket];
|
||||||
|
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
// This file was automatically generated by the
|
// This file was automatically generated by the
|
||||||
// updaterevision tool. Do not edit by hand.
|
// updaterevision tool. Do not edit by hand.
|
||||||
|
|
||||||
#define ZD_SVN_REVISION_STRING "3400"
|
#define ZD_SVN_REVISION_STRING "3401"
|
||||||
#define ZD_SVN_REVISION_NUMBER 3400
|
#define ZD_SVN_REVISION_NUMBER 3401
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue