summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 44a0bdd)
raw | patch | inline | side by side (parent: 44a0bdd)
author | Dagobert Michelsen <dam@opencsw.org> | |
Thu, 28 May 2015 11:19:02 +0000 (13:19 +0200) | ||
committer | Dagobert Michelsen <dam@opencsw.org> | |
Thu, 28 May 2015 11:19:02 +0000 (13:19 +0200) |
src/zone.c | patch | blob | history |
diff --git a/src/zone.c b/src/zone.c
index 52dd977becb1104b6638c47afa415aed7aa76801..e4aad81513bb2b9858139d3990e31de924f6b73f 100644 (file)
--- a/src/zone.c
+++ b/src/zone.c
tree=zone_scandir(procdir);
closedir(procdir);
+ if (tree == NULL) {
+ return (-1);
+ }
zone_submit_values(tree); /* this also frees tree */
return (0);
}