diff options
author | Tobias Stoeckmann <tobias@stoeckmann.org> | 2021-07-23 19:02:33 +0200 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-07-23 20:05:16 +0200 |
commit | e7f4e50da0a46babf968c266250df1f2a09f620f (patch) | |
tree | c639a1d298d77549005b0fc54b06dca9bfdc2d9a /sway/input/cursor.c | |
parent | c9458b9fb1034b1fd9a946aa85d4a7c1f07f2af3 (diff) |
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 'sway/input/cursor.c')
0 files changed, 0 insertions, 0 deletions