mirror of
https://github.com/pikami/slstatus.git
synced 2024-11-30 15:25:41 +00:00
add braces to single statements so drkhsh doesn't be upset
This commit is contained in:
parent
cfb4a5d3ff
commit
b231cd90eb
@ -820,8 +820,9 @@ main(int argc, char *argv[])
|
|||||||
element = smprintf("%s", UNKNOWN_STR);
|
element = smprintf("%s", UNKNOWN_STR);
|
||||||
warnx("Failed to format output");
|
warnx("Failed to format output");
|
||||||
}
|
}
|
||||||
if (strlcat(status_string, element, sizeof(status_string)) >= sizeof(status_string))
|
if (strlcat(status_string, element, sizeof(status_string)) >= sizeof(status_string)) {
|
||||||
warnx("Output too long");
|
warnx("Output too long");
|
||||||
|
}
|
||||||
free(res);
|
free(res);
|
||||||
free(element);
|
free(element);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user