aboutsummaryrefslogtreecommitdiff
path: root/sway/input/cursor.c
diff options
context:
space:
mode:
authorTobias Stoeckmann <tobias@stoeckmann.org>2021-07-23 19:02:33 +0200
committerSimon Ser <contact@emersion.fr>2021-07-23 20:05:16 +0200
commite7f4e50da0a46babf968c266250df1f2a09f620f (patch)
treec639a1d298d77549005b0fc54b06dca9bfdc2d9a /sway/input/cursor.c
parentc9458b9fb1034b1fd9a946aa85d4a7c1f07f2af3 (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