Fixed dumping the stack trace for the current thread by ID - that should have

been a warning (at least in C++ it is).


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@22026 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Axel Dörfler 2007-08-21 10:26:54 +00:00
parent 27eab79b56
commit 8ac552e4d1

View File

@ -172,7 +172,7 @@ stack_trace(int argc, char **argv)
// read %ebp from the thread's stack stored by a pushad
ebp = thread->arch_info.current_stack.esp[2];
} else
thread == NULL;
thread = NULL;
} else if (argc > 2) {
kprintf("usage: %s [thread id]\n", argv[0]);
return 0;