From c6af5e9b967797d315037b26aa05fec5b3e6ef44 Mon Sep 17 00:00:00 2001 From: okan Date: Sat, 20 Jun 2009 00:22:39 +0000 Subject: unroll XCALLOC/XMALLOC macros; since we use xcalloc/xmalloc all over the place anyway, this makes things a bit more consistent; from Thomas Pfaff ok oga@ --- menu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'menu.c') diff --git a/menu.c b/menu.c index 16cf400..ea4a24f 100644 --- a/menu.c +++ b/menu.c @@ -383,7 +383,7 @@ menu_handle_release(XEvent *e, struct menu_ctx *mc, struct screen_ctx *sc, if (entry == i++) break; if (mi == NULL) { - XMALLOC(mi, struct menu); + mi = xmalloc(sizeof(*mi)); mi->text[0] = '\0'; mi->dummy = 1; } -- cgit v1.2.3-2-gb3c3