summaryrefslogtreecommitdiff
path: root/.gitlab-ci.yml
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2024-07-13 15:09:58 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2024-07-13 15:22:16 -0700
commitbf985c68acb1244f51ec91414532a2347fbc1c4c (patch)
treebb47b758d221b711be5875f9e491ad2e3c61875a /.gitlab-ci.yml
parentb4c6069ecc1a6b03051e06aecba04e828fb0d945 (diff)
WriteXKMIndicators: dereference pointer after checking for NULL, not beforeHEADmaster
Found by gcc 14.1: xkmout.c: In function ‘WriteXKMIndicators’: xkmout.c:728:8: warning: check of ‘**result.xkb.indicators’ for NULL after already dereferencing it [-Wanalyzer-deref-before-check] 728 | if (xkb->indicators != NULL) { | ^ [...] ‘WriteXKMIndicators’: events 22-23 | | 727 | size += xkmPutCARD32(file, xkb->indicators->phys_indicators); | | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ | | | | | (22) pointer ‘**result.xkb.indicators’ is dereferenced here | 728 | if (xkb->indicators != NULL) { | | ~ | | | | | (23) pointer ‘**result.xkb.indicators’ is checked for NULL here but it was already dereferenced at (22) Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Part-of: <https://gitlab.freedesktop.org/xorg/lib/libxkbfile/-/merge_requests/19>
Diffstat (limited to '.gitlab-ci.yml')
0 files changed, 0 insertions, 0 deletions