projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
hddtemp: Improve robustness of test
[collectd.git]
/
src
/
hddtemp.c
diff --git
a/src/hddtemp.c
b/src/hddtemp.c
index
4e275dc
..
1178537
100644
(file)
--- a/
src/hddtemp.c
+++ b/
src/hddtemp.c
@@
-171,7
+171,7
@@
static char *hddtemp_query_daemon (void)
buffer_fill = 0;
while (1)
{
- if (
buffer_fill >= buffer_size - 1
)
+ if (
(buffer_size == 0) || (buffer_fill >= buffer_size - 1)
)
{
if (buffer_size == 0)
buffer_size = 1024;