projects
/
suckless
/
slstatus.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2fdb2ed
)
do not exit on failed smprintf
author
Aaron Marcher
<info@nulltime.net>
Sun, 18 Sep 2016 14:54:46 +0000
(16:54 +0200)
committer
Aaron Marcher (drkhsh)
<info@nulltime.net>
Sun, 18 Sep 2016 14:54:46 +0000
(16:54 +0200)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index 4a092af7fcfcd6ca548054991dc1b6e334bc9b2d..fa125720244c34cf871a56423cb62e9dc1382c99 100644
(file)
--- 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);