projects
/
platform
/
upstream
/
weston.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
92de144
)
window: Use xzalloc() instead of silently failing to add output
author
Kristian Høgsberg
<krh@bitplanet.net>
Thu, 15 Aug 2013 21:28:25 +0000
(14:28 -0700)
committer
Kristian Høgsberg
<krh@bitplanet.net>
Fri, 16 Aug 2013 17:55:59 +0000
(10:55 -0700)
clients/window.c
patch
|
blob
|
history
diff --git
a/clients/window.c
b/clients/window.c
index
ce75f0c
..
84d3e73
100644
(file)
--- a/
clients/window.c
+++ b/
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 =