Skip to content

Commit 3aee743

Browse files
committed
Fixed not initializing the output var for GetKeyValueStringRaw
1 parent b9563a1 commit 3aee743

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/core/modules/entities/entities_entity.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -201,6 +201,7 @@ bool CBaseEntityWrapper::operator==(object other)
201201

202202
void CBaseEntityWrapper::GetKeyValueStringRaw(const char* szName, char* szOut, int iLength)
203203
{
204+
*szOut = NULL;
204205
servertools->GetKeyValue(GetThis(), szName, szOut, iLength);
205206
/*
206207
if (!servertools->GetKeyValue(GetThis(), szName, szOut, iLength))

0 commit comments

Comments
 (0)