From 81cb1111b49bf069ce15c1cdc9dcf70246f93ffa Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 15 Jan 2024 09:36:35 +0100 Subject: [PATCH] use malloc here --- src/r_plane.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/r_plane.c b/src/r_plane.c index f412274af..b5c982755 100644 --- a/src/r_plane.c +++ b/src/r_plane.c @@ -385,7 +385,7 @@ static visplane_t *new_visplane(unsigned hash) visplane_t *check = freetail; if (!check) { - check = calloc(1, sizeof (*check)); + check = malloc(sizeof (*check)); if (check == NULL) I_Error("%s: Out of memory", "new_visplane"); // FIXME: ugly } else