X-Git-Url: https://git.xinqibao.xyz/slstatus.git/blobdiff_plain/bad8dc682dc81018a7f95080b5720cc467c17a6f..a2d2e801a2641c8747b4ef64cd88c706980ad5e3:/slstatus.c 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);