aboutsummaryrefslogtreecommitdiffstats
path: root/sway/main.c
diff options
context:
space:
mode:
authorLibravatar Antonin Décimo <antonin.decimo@gmail.com>2020-06-04 13:47:57 +0200
committerLibravatar Tudor Brindus <me@tbrindus.ca>2020-07-30 22:02:42 -0400
commit2960b2c9b6c77d42f2696c1997bda965594e5dd4 (patch)
treea632604bbd3ba626d086fd88613d646354d21dae /sway/main.c
parentipc: fix aligment issue of data buffer (diff)
downloadsway-2960b2c9b6c77d42f2696c1997bda965594e5dd4.tar.gz
sway-2960b2c9b6c77d42f2696c1997bda965594e5dd4.tar.zst
sway-2960b2c9b6c77d42f2696c1997bda965594e5dd4.zip
cmd/bar/colors: fix dereference of null pointer
`!*rgba` tests if the first byte of rgba isn't `'\0'`. `hex_to_rgba_hex` returns NULL if `parse_color` fails. There's a null pointer dereference in that case. The intended behavior is `!rgba`.
Diffstat (limited to 'sway/main.c')
0 files changed, 0 insertions, 0 deletions