summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--slstatus.c2
1 files changed, 1 insertions, 1 deletions
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);