summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authorAaron Marcher <info@nulltime.net>2016-09-13 18:57:56 +0200
committerAaron Marcher (drkhsh) <info@nulltime.net>2016-09-13 18:57:56 +0200
commita1c962f8a385dc6da5ea84fe0363a3f71f342d06 (patch)
tree636b1cef4e5579cacce3466d9a175e8ef5ecac5b /slstatus.c
parent75b18533135e3171157bedc731be5f0ee98937f3 (diff)
simplify status_string clearing
Diffstat (limited to 'slstatus.c')
-rw-r--r--slstatus.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/slstatus.c b/slstatus.c
index 841fb47..6e86092 100644
--- a/slstatus.c
+++ b/slstatus.c
@@ -587,7 +587,7 @@ main(void)
dpy = XOpenDisplay(NULL);
for (;;) {
- memset(status_string, 0, sizeof(status_string));
+ status_string[0] = '\0';
for (i = 0; i < sizeof(args) / sizeof(args[0]); ++i) {
argument = args[i];
if (argument.args == NULL)