1
0
Fork 0

05: C: Just use malloc for the stacks

This commit is contained in:
Mia Herkt 2022-12-05 18:53:09 +01:00
parent 59a0567939
commit 943002f3b7
Signed by: mia
GPG Key ID: 72E154B8622EC191
1 changed files with 1 additions and 1 deletions

View File

@ -11,7 +11,7 @@ typedef struct crate {
#define alloc_stacks(C, N) \
if (C) C = realloc(C, sizeof(crate) * N); \
else C = calloc(1, sizeof(crate) * N);
else C = malloc(sizeof(crate) * N);
int main(void) {
char l[BUFSIZ], *e, *m = 0;