projects
/
platform
/
upstream
/
glibc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
347ae8d
)
(get_cached_stack): Don't crash if we first found a stack with a larger size then...
author
Ulrich Drepper
<drepper@redhat.com>
Tue, 3 Dec 2002 20:06:21 +0000
(20:06 +0000)
committer
Ulrich Drepper
<drepper@redhat.com>
Tue, 3 Dec 2002 20:06:21 +0000
(20:06 +0000)
nptl/allocatestack.c
patch
|
blob
|
history
diff --git
a/nptl/allocatestack.c
b/nptl/allocatestack.c
index
e9e1cfd
..
9f12f2b
100644
(file)
--- a/
nptl/allocatestack.c
+++ b/
nptl/allocatestack.c
@@
-114,7
+114,8
@@
get_cached_stack (size_t *sizep, void **memp)
break;
}
- if (result->stackblock_size > curr->stackblock_size)
+ if (result == NULL
+ || result->stackblock_size > curr->stackblock_size)
result = curr;
}
}