diff options
Diffstat (limited to 'cli/src/cli.c')
-rw-r--r-- | cli/src/cli.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/cli/src/cli.c b/cli/src/cli.c index 1a2081edca1..ccbc88f02e6 100644 --- a/cli/src/cli.c +++ b/cli/src/cli.c @@ -552,9 +552,10 @@ main (int argc, char *argv[]) if (ret) return ret; - ctx = glusterfs_ctx_get (); + ctx = glusterfs_ctx_new (); if (!ctx) return ENOMEM; + THIS->ctx = ctx; ret = glusterfs_ctx_defaults_init (ctx); if (ret) |