|
@@ -106,6 +106,12 @@ static void clearint(car * done)
|
|
// first element of the list is being removed
|
|
// first element of the list is being removed
|
|
if (!(temp2))
|
|
if (!(temp2))
|
|
{
|
|
{
|
|
|
|
+ // if this is the only element
|
|
|
|
+ if (temp == active->back)
|
|
|
|
+ {
|
|
|
|
+ active->back == NULL;
|
|
|
|
+ }
|
|
|
|
+
|
|
active->front = active->front->next;
|
|
active->front = active->front->next;
|
|
goto SKIP1;
|
|
goto SKIP1;
|
|
}
|
|
}
|