Skip to content

Commit d83afec

Browse files
committed
[LINUX] Fix profile configuration warning (TheSuperHackers#620)
1 parent 3b0934b commit d83afec

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

GeneralsMD/Code/Libraries/Source/profile/profile_funclevel.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -549,8 +549,8 @@ bool ProfileFuncLevel::IdList::Enum(unsigned index, Id &id, unsigned *countPtr)
549549

550550
ProfileFuncLevelTracer::Profile &prof=*(ProfileFuncLevelTracer::Profile *)m_ptr;
551551

552-
unsigned addr;
553-
if ((addr=prof.caller.Enumerate(index)))
552+
unsigned addr = prof.caller.Enumerate(index);
553+
if (addr!=0)
554554
{
555555
id.m_funcPtr=prof.tracer->FindFunction(addr);
556556
if (countPtr)

0 commit comments

Comments
 (0)