mirror of
https://github.com/DrBeef/Raze.git
synced 2024-11-15 17:01:51 +00:00
Fix minor bug where a null pointer was passed into free() unconditionally
git-svn-id: https://svn.eduke32.com/eduke32@7003 1a8010ca-5511-0410-912e-c29ae57300e0
This commit is contained in:
parent
9157ae2776
commit
e449408b57
1 changed files with 0 additions and 3 deletions
|
@ -454,10 +454,7 @@ void G_LoadGroups(int32_t autoload)
|
|||
g_defNamePtr = dup_filename(type->defname);
|
||||
|
||||
if (type->rtsname && g_rtsNamePtr == NULL)
|
||||
{
|
||||
free(g_rtsNamePtr);
|
||||
g_rtsNamePtr = dup_filename(type->rtsname);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue