diff options
author | 2020-06-04 14:41:22 +0200 | |
---|---|---|
committer | 2020-07-30 22:02:42 -0400 | |
commit | a1c6052383d382d978ca597dc5fb280c0343db60 (patch) | |
tree | ce81e5b63303a0c141cbcd4b96a82fc8e06331bf /swaybar/input.c | |
parent | cmd/bar/colors: fix dereference of null pointer (diff) | |
download | sway-a1c6052383d382d978ca597dc5fb280c0343db60.tar.gz sway-a1c6052383d382d978ca597dc5fb280c0343db60.tar.zst sway-a1c6052383d382d978ca597dc5fb280c0343db60.zip |
Log empty value if envvar is not defined
If the environment variable is not defined, getenv returns NULL.
Passing a NULL pointer to the "%s" format specifier is undefined
behavior. Even if some implementations output "(null)", an empty
string is nicer.
Diffstat (limited to 'swaybar/input.c')
0 files changed, 0 insertions, 0 deletions