diff options
Diffstat (limited to 'libglusterfs/src/graph.c')
| -rw-r--r-- | libglusterfs/src/graph.c | 4 | 
1 files changed, 4 insertions, 0 deletions
diff --git a/libglusterfs/src/graph.c b/libglusterfs/src/graph.c index 0c7d6cf6101..916942c3a2d 100644 --- a/libglusterfs/src/graph.c +++ b/libglusterfs/src/graph.c @@ -1040,6 +1040,10 @@ glusterfs_graph_attach (glusterfs_graph_t *orig_graph, char *path)          xlator_t                *xl;          char                    *volfile_id; +        if (!orig_graph) { +                return -EINVAL; +        } +          fp = fopen (path, "r");          if (!fp) {                  gf_log (THIS->name, GF_LOG_WARNING,  | 
