diff --git a/src/main.c b/src/main.c index 3e2747f..a67d446 100644 --- a/src/main.c +++ b/src/main.c @@ -25,7 +25,8 @@ int main(void) { // no need to destroy if this is all the programm, // in any other case destroy IS needed for memory // leaks :) - ArrayList *arr = arraylist_init(ARR_SIZE, sizeof(int)); + ArrayList *arr; + arraylist_init(&arr, ARR_SIZE, sizeof(int)); if (arr == NULL) { puts("El arreglo no pudo ser inicializado.");