projects
/
collectd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
44a0bdd
)
Handle case when zone_scandir() returns NULL
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
52dd977
..
e4aad81
100644
(file)
--- a/
src/zone.c
+++ b/
src/zone.c
@@
-188,6
+188,9
@@
static int zone_read (void)
tree=zone_scandir(procdir);
closedir(procdir);
+ if (tree == NULL) {
+ return (-1);
+ }
zone_submit_values(tree); /* this also frees tree */
return (0);
}