diff options
author | 2020-02-10 13:05:16 +0100 | |
---|---|---|
committer | 2020-02-10 13:29:07 +0100 | |
commit | 0f5157668da3cbf614a2f71ff24778ed62bad1ea (patch) | |
tree | 8c8b57327e880f38651a376d1f8d8a88e1db204f /.clang-format | |
parent | Fix seat_set_focus_layer crash when disabling output (diff) | |
download | sway-0f5157668da3cbf614a2f71ff24778ed62bad1ea.tar.gz sway-0f5157668da3cbf614a2f71ff24778ed62bad1ea.tar.zst sway-0f5157668da3cbf614a2f71ff24778ed62bad1ea.zip |
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 '.clang-format')
0 files changed, 0 insertions, 0 deletions