summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libglusterfs/src/rot-buffs.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/libglusterfs/src/rot-buffs.c b/libglusterfs/src/rot-buffs.c
index c5147321c60..560d9f9805e 100644
--- a/libglusterfs/src/rot-buffs.c
+++ b/libglusterfs/src/rot-buffs.c
@@ -96,8 +96,11 @@ rvec_in_watermark_range(rbuf_list_t *rlist)
static void
rbuf_reset_rvec(rbuf_iovec_t *rvec)
{
+ GF_VALIDATE_OR_GOTO("libglusterfs", rvec, err);
/* iov_base is _never_ modified */
rvec->iov.iov_len = 0;
+err:
+ return;
}
/* TODO: alloc multiple rbuf_iovec_t */