From 69594ccf9cad988e422db98153e1e555f3a7f1f8 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Kristian=20H=C3=B8gsberg?= Date: Thu, 15 Aug 2013 14:28:25 -0700 Subject: [PATCH] window: Use xzalloc() instead of silently failing to add output --- clients/window.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/clients/window.c b/clients/window.c index ce75f0c..84d3e73 100644 --- a/clients/window.c +++ b/clients/window.c @@ -4791,10 +4791,7 @@ display_add_output(struct display *d, uint32_t id) { struct output *output; - output = zalloc(sizeof *output); - if (output == NULL) - return; - + output = xzalloc(sizeof *output); output->display = d; output->scale = 1; output->output = -- 2.7.4