diff options
author | Aaron Marcher <info@nulltime.net> | 2016-09-18 22:01:44 +0200 |
---|---|---|
committer | Aaron Marcher (drkhsh) <info@nulltime.net> | 2016-09-18 22:01:44 +0200 |
commit | c5ace949e42d5c32584c66b4757ac30bf23729ff (patch) | |
tree | 8647b493c29876c94c5043009492b23ce59d5c4d /slstatus.c | |
parent | bad8dc682dc81018a7f95080b5720cc467c17a6f (diff) |
braces for one line statements in smprintf()
Diffstat (limited to 'slstatus.c')
-rw-r--r-- | slstatus.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |