Commit 97ba4f62 authored by Ivica Ico Bukvic's avatar Ivica Ico Bukvic
Browse files

added additional check to make sure clock_unset is not trying to unset...

added additional check to make sure clock_unset is not trying to unset something that just happened (may require further testing, based on one gdb segfault log)
parent 1aa7bc28
......@@ -69,8 +69,8 @@ void clock_unset(t_clock *x)
else
{
t_clock *x2 = clock_setlist;
while (x2->c_next != x) x2 = x2->c_next;
x2->c_next = x->c_next;
while (x2 && x2->c_next != x) x2 = x2->c_next;
if (x2) x2->c_next = x->c_next;
}
x->c_settime = -1;
}
......
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