summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/graph.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/graph.c')
-rw-r--r--libglusterfs/src/graph.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c
index 1edcf20eda6..86d08f0e25b 100644
--- a/libglusterfs/src/graph.c
+++ b/libglusterfs/src/graph.c
@@ -292,8 +292,10 @@ glusterfs_graph_validate_options (glusterfs_graph_t *graph)
trav = graph->first;
while (trav) {
- if (list_empty (&trav->volume_options))
+ if (list_empty (&trav->volume_options)) {
+ trav = trav->next;
continue;
+ }
ret = xlator_options_validate (trav, trav->options, &errstr);
if (ret) {