window: Use xzalloc() instead of silently failing to add output
This commit is contained in:
+1
-4
@@ -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 =
|
||||||
|
|||||||
Reference in New Issue
Block a user