commit | 69594ccf9cad988e422db98153e1e555f3a7f1f8 | [log] [tgz] |
---|---|---|
author | Kristian Høgsberg <krh@bitplanet.net> | Thu Aug 15 14:28:25 2013 -0700 |
committer | Kristian Høgsberg <krh@bitplanet.net> | Fri Aug 16 10:55:59 2013 -0700 |
tree | a7096df9fec4597204bc90e4f96cedc921dde2d4 | |
parent | 92de1443312e69b217bf817c52cc0fb4bfae8ada [diff] [blame] |
window: Use xzalloc() instead of silently failing to add output
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 @@ { struct output *output; - output = zalloc(sizeof *output); - if (output == NULL) - return; - + output = xzalloc(sizeof *output); output->display = d; output->scale = 1; output->output =