05: C: Just use malloc for the stacks
This commit is contained in:
parent
59a0567939
commit
943002f3b7
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue