Whoops.
git-svn-id: https://www.unprompted.com/svn/projects/tildefriends/trunk@3676 ed5197a5-7fde-0310-b194-c3ffbd925b24
This commit is contained in:
parent
21ba7cb02c
commit
62ad08985c
@ -103,7 +103,7 @@ void tf_trace_begin(tf_trace_t* trace, const char* name)
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!trace->stack || trace->stack->count + 1 < _countof(trace->stack->names))
|
if (!trace->stack || trace->stack->count + 1 > _countof(trace->stack->names))
|
||||||
{
|
{
|
||||||
tf_trace_stack_t* stack = malloc(sizeof(tf_trace_stack_t));
|
tf_trace_stack_t* stack = malloc(sizeof(tf_trace_stack_t));
|
||||||
memset(stack, 0, sizeof(*stack));
|
memset(stack, 0, sizeof(*stack));
|
||||||
@ -111,7 +111,7 @@ void tf_trace_begin(tf_trace_t* trace, const char* name)
|
|||||||
trace->stack = stack;
|
trace->stack = stack;
|
||||||
}
|
}
|
||||||
tf_trace_stack_t* stack = trace->stack;
|
tf_trace_stack_t* stack = trace->stack;
|
||||||
while (stack->count == 0 && stack->next && stack->count + 1 < _countof(trace->stack->names))
|
while (stack->count == 0 && stack->next && stack->count + 1 > _countof(trace->stack->names))
|
||||||
{
|
{
|
||||||
stack = stack->next;
|
stack = stack->next;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user