mirror of
https://github.com/pikami/slstatus.git
synced 2024-11-27 13:55:41 +00:00
braces for one line statements in smprintf()
This commit is contained in:
parent
bad8dc682d
commit
c5ace949e4
@ -88,8 +88,9 @@ smprintf(const char *fmt, ...)
|
||||
va_end(ap);
|
||||
|
||||
ret = malloc(++len);
|
||||
if (ret == NULL)
|
||||
if (ret == NULL) {
|
||||
err(1, "malloc");
|
||||
}
|
||||
|
||||
va_start(ap, fmt);
|
||||
vsnprintf(ret, len, fmt, ap);
|
||||
|
Loading…
Reference in New Issue
Block a user