Commit f2f6e473 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Thread.Mutex: Fixed linking error in try_shared_lock().

parent 8f1ff90b
......@@ -2617,10 +2617,11 @@ void f_mutex_try_shared_lock(INT32 args)
key = OB2KEY(o);
if (prev) {
/* Link after prev. */
key->mut = m;
add_ref (key->mutex_obj = Pike_fp->current_object);
key->prev = prev;
if ((key->next = prev)) {
if ((key->next = prev->next)) {
prev->next->prev = key;
}
prev->next = key;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment