summaryrefslogtreecommitdiffstats
path: root/libglusterfs/src/call-stub.c
diff options
context:
space:
mode:
Diffstat (limited to 'libglusterfs/src/call-stub.c')
-rw-r--r--libglusterfs/src/call-stub.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/libglusterfs/src/call-stub.c b/libglusterfs/src/call-stub.c
index e505bf7fd3e..89788b3b8dc 100644
--- a/libglusterfs/src/call-stub.c
+++ b/libglusterfs/src/call-stub.c
@@ -38,8 +38,7 @@ stub_new (call_frame_t *frame,
GF_VALIDATE_OR_GOTO ("call-stub", frame, out);
- new = mem_get (frame->this->ctx->stub_mem_pool);
- memset (new, 0, sizeof (call_stub_t));
+ new = mem_get0 (frame->this->ctx->stub_mem_pool);
GF_VALIDATE_OR_GOTO ("call-stub", new, out);
new->frame = frame;