projects
/
project
/
libubox.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
utils: fix build on Mac OS X 10.12
[project/libubox.git]
/
jshn.c
diff --git
a/jshn.c
b/jshn.c
index
e2d9022
..
4989099
100644
(file)
--- a/
jshn.c
+++ b/
jshn.c
@@
-338,6
+338,10
@@
int main(int argc, char **argv)
for (i = 0; environ[i]; i++);
vars = calloc(i, sizeof(*vars));
+ if (!vars) {
+ fprintf(stderr, "%m\n");
+ return -1;
+ }
for (i = 0; environ[i]; i++) {
char *c;