projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
75b1853
)
simplify status_string clearing
author
Aaron Marcher
<info@nulltime.net>
Tue, 13 Sep 2016 16:57:56 +0000
(18:57 +0200)
committer
Aaron Marcher (drkhsh)
<info@nulltime.net>
Tue, 13 Sep 2016 16:57:56 +0000
(18:57 +0200)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index 841fb47c59ff96fa5416d73d31851854e2995cce..6e86092bf5432dcf6f570fc1909975d99253fc5b 100644
(file)
--- 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)