diff options
author | Pablo Barciela <[email protected]> | 2019-04-08 21:26:27 +0200 |
---|---|---|
committer | Victor Kareh <[email protected]> | 2019-08-12 16:23:58 +0300 |
commit | d154eaf9027c1fc135ff50c70beed2bc5d7d4a65 (patch) | |
tree | c092df31e932bbd93d0b8a197722bce862fefc93 /HACKING | |
parent | 8c352c4fed01b70fe109442cd5cfa7f8b19bcb5b (diff) | |
download | marco-d154eaf9027c1fc135ff50c70beed2bc5d7d4a65.tar.bz2 marco-d154eaf9027c1fc135ff50c70beed2bc5d7d4a65.tar.xz |
xprops: Fix cast from non-struct type to struct type
Fixes Clang static analyzer warnings:
core/xprops.c:761:9: warning: Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption
raw = (xPropWMHints*) results->prop;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
core/xprops.c:883:9: warning: Casting a non-structure type to a structure type and accessing a field can lead to memory access errors or data corruption
raw = (xPropSizeHints*) results->prop;
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Diffstat (limited to 'HACKING')
0 files changed, 0 insertions, 0 deletions