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:37:33 -0700
commitb896ec15fb123b77025394d53f019f7fa12bad3e (patch)
tree66097a47ba1b45c1bb23bf673dff18c28a87b4f4 /libglusterfsclient
parent86a428263aaf15b8b98f29a9d959fef3de6caa6b (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 a892f98f3..993257b96 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");