all repos — slstatus @ c5ace949e42d5c32584c66b4757ac30bf23729ff

my build of slstatus (tools.suckless.org/slstatus/)

braces for one line statements in smprintf()
Aaron Marcher info@nulltime.net
Sun, 18 Sep 2016 22:01:44 +0200
commit

c5ace949e42d5c32584c66b4757ac30bf23729ff

parent

bad8dc682dc81018a7f95080b5720cc467c17a6f

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M slstatus.cslstatus.c

@@ -88,8 +88,9 @@ len = vsnprintf(NULL, 0, fmt, ap);

va_end(ap); ret = malloc(++len); - if (ret == NULL) + if (ret == NULL) { err(1, "malloc"); + } va_start(ap, fmt); vsnprintf(ret, len, fmt, ap);