Mercurial > molko
diff libadventure/adventure/state/splashscreen.c @ 227:befa2e855d3b
core: reinterface the alloc module
author | David Demelier <markand@malikania.fr> |
---|---|
date | Thu, 19 Nov 2020 10:48:46 +0100 |
parents | ddfe0a211169 |
children |
line wrap: on
line diff
--- a/libadventure/adventure/state/splashscreen.c Thu Nov 19 10:17:04 2020 +0100 +++ b/libadventure/adventure/state/splashscreen.c Thu Nov 19 10:48:46 2020 +0100 @@ -54,7 +54,7 @@ struct splashscreen *splash; struct font font; - splash = alloc_zero(1, sizeof (*splash)); + splash = alloc_new0(sizeof (*splash)); splash->next = next; if (!font_openmem(&font, fonts_cubic, sizeof (fonts_cubic), 80))