summaryrefslogtreecommitdiffstats
path: root/libglusterfsclient
diff options
context:
space:
mode:
authorShehjar Tikoo <shehjart@gluster.com>2009-05-28 04:42:37 +0000
committerAnand V. Avati <avati@dev.gluster.com>2009-06-03 00:23:21 -0700
commitf47f568aa0fd8d12c211e3b249fcf7a67ec56f9e (patch)
tree5404bd0b096a96b10078e591a9c45a0a5d4beeb3 /libglusterfsclient
parenta29ec1f1484902400f08b24ed777ea984923ffea (diff)
libglusterfsclient: Allocate right sized structure
Signed-off-by: Anand V. Avati <avati@dev.gluster.com>
Diffstat (limited to 'libglusterfsclient')
-rwxr-xr-xlibglusterfsclient/src/libglusterfsclient.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libglusterfsclient/src/libglusterfsclient.c b/libglusterfsclient/src/libglusterfsclient.c
index a892f98f306..993257b9611 100755
--- a/libglusterfsclient/src/libglusterfsclient.c
+++ b/libglusterfsclient/src/libglusterfsclient.c
@@ -263,7 +263,7 @@ libgf_alloc_inode_ctx (libglusterfs_client_ctx_t *ctx, inode_t *inode)
GF_VALIDATE_OR_GOTO (LIBGF_XL_NAME, inode, out);
GF_VALIDATE_OR_GOTO (LIBGF_XL_NAME, ctx, out);
- ictx = CALLOC (1, sizeof (libglusterfs_client_ctx_t));
+ ictx = CALLOC (1, sizeof (*ictx));
if (ictx == NULL) {
gf_log (LIBGF_XL_NAME, GF_LOG_ERROR,
"memory allocation failure");