diff options
author | Giuseppe Bilotta <giuseppe.bilotta@gmail.com> | 2017-11-04 23:06:29 +0100 |
---|---|---|
committer | Adam Jackson <ajax@redhat.com> | 2017-11-06 16:54:22 -0500 |
commit | bb766ef11227bd8c71ac65845d1930edd0eda40d (patch) | |
tree | 58119cc64fd66faa3212b374a50392bca83a8b04 /glx | |
parent | 6828645916505a5925db5c2c2e816fee4e1050e5 (diff) |
randr: ProcRRGetOutputInfo: initialize memory
Running Xephyr under valgrind reveals that we're sending some
uninitialized memory over the wire (particularly, the leftover padding
that comes from rounding extraLen to the next 32-bit multiple).
Solve by calloc()ing the memory instead of malloc()ing (the alternative
would be to memset just the padding, but I'm not sure it's more
convenient.)
Signed-off-by: Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
Reviewed-by: Adam Jackson <ajax@redhat.com>
Diffstat (limited to 'glx')
0 files changed, 0 insertions, 0 deletions