window: Use xzalloc() instead of silently failing to add output

dev
Kristian Høgsberg 11 years ago
parent 92de144331
commit 69594ccf9c
  1. 5
      clients/window.c

@ -4791,10 +4791,7 @@ display_add_output(struct display *d, uint32_t id)
{ {
struct output *output; struct output *output;
output = zalloc(sizeof *output); output = xzalloc(sizeof *output);
if (output == NULL)
return;
output->display = d; output->display = d;
output->scale = 1; output->scale = 1;
output->output = output->output =

Loading…
Cancel
Save