aboutsummaryrefslogtreecommitdiff
path: root/swaybar/tray/watcher.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2019-06-05 18:26:12 +0200
committerBrian Ashworth <bosrsf04@gmail.com>2019-06-05 14:40:29 -0400
commitb4b274cdcea5269fc39ef9c846157d211f79eec9 (patch)
treebc58e4b6615053bdabececbb959b595d011e520d /swaybar/tray/watcher.c
parent900d3287f9b63df6320fa159aa0a842e8e8afd3d (diff)
check for empty string before calling strtoul() and check errno
Note: since strtoul() has no real error return code (both 0 and ULONG_MAX may be returned on both success and failure), set errno=0 before calling strtoul().
Diffstat (limited to 'swaybar/tray/watcher.c')
0 files changed, 0 insertions, 0 deletions