From 1ef8a597db1ead482612f2f0bcc212d9a1349ccb Mon Sep 17 00:00:00 2001 From: "M. Mohan Kumar" Date: Fri, 15 Nov 2013 17:50:34 +0530 Subject: Fixes for ZF reported by coverity BUG: 1028673 Change-Id: I7c75738cca22c81c5629d579ef5bea24000e622e Signed-off-by: M. Mohan Kumar Reviewed-on: http://review.gluster.org/6291 Tested-by: Gluster Build System Reviewed-by: Vijay Bellur --- xlators/protocol/client/src/client-rpc-fops.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'xlators/protocol/client/src') diff --git a/xlators/protocol/client/src/client-rpc-fops.c b/xlators/protocol/client/src/client-rpc-fops.c index 6355450c3..6901d8e2c 100644 --- a/xlators/protocol/client/src/client-rpc-fops.c +++ b/xlators/protocol/client/src/client-rpc-fops.c @@ -6053,7 +6053,9 @@ client3_3_zerofill(call_frame_t *frame, xlator_t *this, void *data) int op_errno = ESTALE; int ret = 0; - if (!frame || !this || !data) + GF_ASSERT (frame); + + if (!this || !data) goto unwind; args = data; -- cgit