From b43ef598abec07cff6090dd507419347621b473c Mon Sep 17 00:00:00 2001 From: Pranith K Date: Fri, 12 Nov 2010 00:55:02 +0000 Subject: mgmt/glusterd: set the transport type correctly in create volume Signed-off-by: Pranith Kumar K Signed-off-by: Anand V. Avati BUG: 2095 () URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2095 --- cli/src/cli-cmd-parser.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'cli/src/cli-cmd-parser.c') diff --git a/cli/src/cli-cmd-parser.c b/cli/src/cli-cmd-parser.c index 826717223..ecf22931e 100644 --- a/cli/src/cli-cmd-parser.c +++ b/cli/src/cli-cmd-parser.c @@ -177,7 +177,7 @@ cli_cmd_volume_create_parse (const char **words, int wordcount, dict_t **options trans_type = gf_strdup ("tcp"); } - ret = dict_set_str (dict, "transport", trans_type); + ret = dict_set_dynstr (dict, "transport", trans_type); if (ret) goto out; @@ -288,9 +288,6 @@ out: if (dict) dict_destroy (dict); } - if (trans_type) - GF_FREE (trans_type); - return ret; } -- cgit