diff options
author | Mohammed Junaid Ahmed <junaid@gluster.com> | 2011-03-16 09:43:21 +0000 |
---|---|---|
committer | Vijay Bellur <vijay@dev.gluster.com> | 2011-03-17 11:59:08 -0700 |
commit | d3e9a97b6ef340f827cf55de5340a8bf5c732f3e (patch) | |
tree | 90d88ecb609c9ab2b3fd4717d8ec3dbe126f360d /xlators/protocol/server/src/server-resolve.c | |
parent | 0d7628c6c2b0c1d1e1bdcc6dc3904d30d6ebf38e (diff) |
protocol/server: White space cleanup and NULL check validations.
Signed-off-by: Junaid <junaid@gluster.com>
Signed-off-by: Amar Tumballi <amar@gluster.com>
Signed-off-by: Vijay Bellur <vijay@dev.gluster.com>
BUG: 2346 (Log message enhancements in GlusterFS - phase 1)
URL: http://bugs.gluster.com/cgi-bin/bugzilla3/show_bug.cgi?id=2346
Diffstat (limited to 'xlators/protocol/server/src/server-resolve.c')
-rw-r--r-- | xlators/protocol/server/src/server-resolve.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/xlators/protocol/server/src/server-resolve.c b/xlators/protocol/server/src/server-resolve.c index df16aef2202..1da41b2fd59 100644 --- a/xlators/protocol/server/src/server-resolve.c +++ b/xlators/protocol/server/src/server-resolve.c @@ -61,7 +61,6 @@ prepare_components (call_frame_t *frame) int i = 0; char *trav = NULL; - state = CALL_STATE (frame); resolve = state->resolve_now; @@ -71,8 +70,8 @@ prepare_components (call_frame_t *frame) count = component_count (resolve->path); components = GF_CALLOC (sizeof (*components), count, gf_server_mt_resolv_comp_t); - if (!components) - goto out; + GF_VALIDATE_OR_GOTO ("server", components, out); + resolve->components = components; components[0].basename = ""; |