Skip to content
Snippets Groups Projects
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
No related branches found
No related tags found
No related merge requests found
......@@ -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;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment