From db07244cb805c6c58b68e1aeed203c651976f034 Mon Sep 17 00:00:00 2001 From: Aaron Marcher Date: Sun, 18 Sep 2016 16:54:46 +0200 Subject: do not exit on failed smprintf --- slstatus.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/slstatus.c b/slstatus.c index 4a092af..fa12572 100644 --- a/slstatus.c +++ b/slstatus.c @@ -90,7 +90,7 @@ smprintf(const char *fmt, ...) ret = malloc(++len); if (ret == NULL) { warn("Malloc failed."); - exit(1); + return "n/a"; } va_start(ap, fmt); -- cgit v1.2.3