summaryrefslogtreecommitdiff
path: root/slstatus.c
diff options
context:
space:
mode:
authorAaron Marcher <info@nulltime.net>2016-09-18 16:54:46 +0200
committerAaron Marcher (drkhsh) <info@nulltime.net>2016-09-18 16:54:46 +0200
commitdb07244cb805c6c58b68e1aeed203c651976f034 (patch)
tree3af6d1be6c4a68686f8a00a8b68eb8313a6e02bf /slstatus.c
parent2fdb2ede0452b75d7b969aed61f0bdf5f22a0720 (diff)
do not exit on failed smprintf
Diffstat (limited to 'slstatus.c')
-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);