mirror of
https://github.com/pikami/slstatus.git
synced 2024-11-30 15:25:41 +00:00
simplify status_string clearing
This commit is contained in:
parent
75b1853313
commit
a1c962f8a3
@ -587,7 +587,7 @@ main(void)
|
|||||||
dpy = XOpenDisplay(NULL);
|
dpy = XOpenDisplay(NULL);
|
||||||
|
|
||||||
for (;;) {
|
for (;;) {
|
||||||
memset(status_string, 0, sizeof(status_string));
|
status_string[0] = '\0';
|
||||||
for (i = 0; i < sizeof(args) / sizeof(args[0]); ++i) {
|
for (i = 0; i < sizeof(args) / sizeof(args[0]); ++i) {
|
||||||
argument = args[i];
|
argument = args[i];
|
||||||
if (argument.args == NULL)
|
if (argument.args == NULL)
|
||||||
|
Loading…
Reference in New Issue
Block a user