diff --git a/Makefile b/Makefile index 543caf5..b223871 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,5 @@ CC = gcc -CFLAGS += -std=c99 -Wall -Werror -pedantic #-g +CFLAGS += -std=c99 -Wall -Werror -pedantic -ggdb3 INCDIR = ./lib/utils ./lib/ini ./lib/threadpool ./src ./lib/log ./lib/api INCLUDES := $(patsubst %,-I %,$(INCDIR)) LDFLAGS = -L . -lm diff --git a/lib/api/api.c b/lib/api/api.c index f9d9dd7..7cf539d 100644 --- a/lib/api/api.c +++ b/lib/api/api.c @@ -1691,7 +1691,7 @@ int closeEveryFile() { } int createOpenedFiles(void) { - openedFiles = calloc(1, sizeof(openedFiles)); + openedFiles = calloc(1, sizeof(openfiles_t)); if(!openedFiles) { perror("calloc"); return -1;