diff options
| author | Furkan Sahin <furkan-dev@proton.me> | 2021-07-23 19:02:33 +0200 |
|---|---|---|
| committer | Furkan Sahin <furkan-dev@proton.me> | 2021-07-23 19:02:33 +0200 |
| commit | 4ec7737b1638e63c8d233bfc3274ed58cfe215a5 (patch) | |
| tree | c639a1d298d77549005b0fc54b06dca9bfdc2d9a /include | |
| parent | 05c669bc85cdc689219b1cdf9ff8cded60bda806 (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 'include')
0 files changed, 0 insertions, 0 deletions
