Xinqi Bao's Git
projects
/
slstatus.git
/ diff
summary
|
log
|
commit
|
diff
|
tree
raw
|
patch
| inline |
side by side
(parent:
bad8dc6
)
braces for one line statements in smprintf()
author
Aaron Marcher <
[email protected]
>
Sun, 18 Sep 2016 20:01:44 +0000
(22:01 +0200)
committer
Aaron Marcher (drkhsh) <
[email protected]
>
Sun, 18 Sep 2016 20:01:44 +0000
(22:01 +0200)
slstatus.c
diff
|
blob
|
history
diff --git
a/slstatus.c
b/slstatus.c
index
fd27570
..
f6e8339
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);