From a1c962f8a385dc6da5ea84fe0363a3f71f342d06 Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Tue, 13 Sep 2016 18:57:56 +0200 Subject: simplify status_string clearing --- slstatus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'slstatus.c') 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) -- cgit v1.2.3