aboutsummaryrefslogtreecommitdiff
path: root/include/swaybar/input.h
diff options
context:
space:
mode:
authorFurkan Sahin <furkan-dev@proton.me>2020-02-10 13:05:16 +0100
committerFurkan Sahin <furkan-dev@proton.me>2020-02-10 13:05:16 +0100
commit2baf7beb92c45c19e20d1dca54bff7a0c243703f (patch)
tree8c8b57327e880f38651a376d1f8d8a88e1db204f /include/swaybar/input.h
parent65fbd257be3bcbf5bf2e9b0068ddc76c012c84bf (diff)
Avoid calling strcmp on nullptr
The function group_handler may get a nullptr as `new_group`. If that's the case, return true, as if `new_group` was the empty string. Also make the conversion to bool explicit when calling `strcmp`.
Diffstat (limited to 'include/swaybar/input.h')
0 files changed, 0 insertions, 0 deletions