git.ucc.asn.au
/
tpg
/
acess2.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Kernel - Fixes from clang's scan-build tool
[tpg/acess2.git]
/
Kernel
/
threads.c
diff --git
a/Kernel/threads.c
b/Kernel/threads.c
index
4ab76ff
..
fa6f6e0
100644
(file)
--- a/
Kernel/threads.c
+++ b/
Kernel/threads.c
@@
-1291,7
+1291,7
@@
tThread *Threads_GetNextToRun(int CPU, tThread *Last)
}
// If we fall onto the same queue again, special handling is
// needed
- if( i == Last->Priority ) {
+ if(
Last &&
i == Last->Priority ) {
tThread *savedThread = thread;
// Find the next unscheduled thread in the list
UCC
git Repository :: git.ucc.asn.au