slstatus

My fork of https://tools.suckless.org/slstatus/
git clone https://git.inz.fi/slstatus
Log | Files | Refs | README | LICENSE

commit c5ace949e42d5c32584c66b4757ac30bf23729ff
parent bad8dc682dc81018a7f95080b5720cc467c17a6f
Author: Aaron Marcher <info@nulltime.net>
Date:   Sun, 18 Sep 2016 22:01:44 +0200

braces for one line statements in smprintf()

Diffstat:
Mslstatus.c | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git 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);