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;
output = zalloc(sizeof *output);
if (output == NULL)
return;
output = xzalloc(sizeof *output);
output->display = d;
output->scale = 1;
output->output =

Loading…
Cancel
Save