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

This commit is contained in:
Kristian Høgsberg
2013-08-15 14:28:25 -07:00
parent 92de144331
commit 69594ccf9c
+1 -4
View File
@@ -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 =