summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)