mirror of
https://github.com/FWGS/xash3d-fwgs.git
synced 2026-08-05 03:24:56 +08:00
filesystem: fix possible NULL dereference
This commit is contained in:
@@ -320,6 +320,12 @@ public:
|
||||
return nullptr;
|
||||
|
||||
state = new CSearchState( &searchHead, search );
|
||||
if( !state )
|
||||
{
|
||||
Mem_Free( search );
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
*handle = state->handle;
|
||||
return state->search->filenames[0];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user