diff options
author | 2021-07-23 19:02:33 +0200 | |
---|---|---|
committer | 2021-07-23 20:05:16 +0200 | |
commit | e7f4e50da0a46babf968c266250df1f2a09f620f (patch) | |
tree | c639a1d298d77549005b0fc54b06dca9bfdc2d9a /swaybar | |
parent | Add `gaps <type> <scope> toggle <px>` command (diff) | |
download | sway-e7f4e50da0a46babf968c266250df1f2a09f620f.tar.gz sway-e7f4e50da0a46babf968c266250df1f2a09f620f.tar.zst sway-e7f4e50da0a46babf968c266250df1f2a09f620f.zip |
Fix crash when starting without HOME
If HOME environment variable is not set, sway fails startup with a
segmentation fault due to null pointer dereference.
Also check calloc return value and only perform the fallback code when
really needed.
Signed-off-by: Tobias Stoeckmann <tobias@stoeckmann.org>
Diffstat (limited to 'swaybar')
0 files changed, 0 insertions, 0 deletions