projects
/
collectd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge pull request #1842 from rubenk/declare-loop-variable-in-for-loop-controlling...
[collectd.git]
/
src
/
lvm.c
diff --git
a/src/lvm.c
b/src/lvm.c
index
bd22740
..
6b9a031
100644
(file)
--- a/
src/lvm.c
+++ b/
src/lvm.c
@@
-24,6
+24,7
@@
#include <lvm2app.h>
#include "collectd.h"
+
#include "common.h"
#include "plugin.h"
@@
-121,7
+122,7
@@
static void vg_read(vg_t vg, char const *vg_name)
lvs = lvm_vg_list_lvs(vg);
if (!lvs) {
/* no VGs are defined, which is not an error per se */
- return
(0)
;
+ return;
}
dm_list_iterate_items(lvl, lvs) {