Veranderingen om CCS blij te maken
This commit is contained in:
@@ -5,6 +5,7 @@
|
||||
#include <string.h>
|
||||
#include <stdio.h>
|
||||
|
||||
int i;
|
||||
// initilises a CMDList_t with all NULL pointers
|
||||
CMDList_t* CMDList_init()
|
||||
{
|
||||
@@ -21,7 +22,7 @@ int CMDList_deinit(CMDList_t *list)
|
||||
// printf("deinit %p\n", (void*)list);
|
||||
// printf("deinit e %p\n", list->e);
|
||||
|
||||
for (int i = 0; i < 26; i++)
|
||||
for (i = 0; i < 26; i++)
|
||||
{
|
||||
if (*(list_p + i) != NULL)
|
||||
{
|
||||
@@ -31,7 +32,7 @@ int CMDList_deinit(CMDList_t *list)
|
||||
}
|
||||
|
||||
//TODO: fix "free(): invalid pointer"
|
||||
// free(list);
|
||||
free(list);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user