[PATCH xrandr] xrandr: output_name was uninitialized in get_outputs
Keith Packard
keithp at keithp.com
Sat Dec 23 23:51:46 UTC 2017
Just got a compiler warning message about this and it seems legit.
Signed-off-by: Keith Packard <keithp at keithp.com>
---
xrandr.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/xrandr.c b/xrandr.c
index 2d4cb72..f992201 100644
--- a/xrandr.c
+++ b/xrandr.c
@@ -1822,6 +1822,7 @@ get_outputs (void)
output_t *output;
name_t output_name;
if (!output_info) fatal ("could not get output 0x%lx information\n", res->outputs[o]);
+ init_name (&output_name);
set_name_xid (&output_name, res->outputs[o]);
set_name_index (&output_name, o);
set_name_string (&output_name, output_info->name);
--
2.15.1
More information about the xorg-devel
mailing list