Signed-off-by: Jerome Benoit <jerome.benoit@sap.com>
#include <stdio.h>
#include <stdlib.h>
#include <stdio.h>
#include <stdlib.h>
#include <stdbool.h>
#include "clist.h"
#include <stdbool.h>
#include "clist.h"
head2 = head->next;
while (head2 != NULL && head2->next != NULL) {
head = head->next;
head2 = head->next;
while (head2 != NULL && head2->next != NULL) {
head = head->next;
- head2 = head->next->next;
+ head2 = head->next->next;
}
head2 = head->next;
head->next = NULL;
}
head2 = head->next;
head->next = NULL;