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:
bad8dc6
)
braces for one line statements in smprintf()
author
Aaron Marcher
<info@nulltime.net>
Sun, 18 Sep 2016 20:01:44 +0000
(22:01 +0200)
committer
Aaron Marcher (drkhsh)
<info@nulltime.net>
Sun, 18 Sep 2016 20:01:44 +0000
(22:01 +0200)
slstatus.c
patch
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index fd2757088387eca107a0e8d9064cbc332b88a884..f6e83391ad399b6de56f1e63ab6e3716569b1951 100644
(file)
--- 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);