From: Aaron Marcher Date: Sun, 18 Sep 2016 20:01:44 +0000 (+0200) Subject: braces for one line statements in smprintf() X-Git-Url: https://git.xinqibao.xyz/slstatus.git/commitdiff_plain/c5ace949e42d5c32584c66b4757ac30bf23729ff?ds=inline;hp=-c braces for one line statements in smprintf() --- c5ace949e42d5c32584c66b4757ac30bf23729ff diff --git a/slstatus.c b/slstatus.c index fd27570..f6e8339 100644 --- a/slstatus.c +++ b/slstatus.c @@ -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);