Permalink
Browse files

Fix clang warning

src/vbucket.c:141:29: error: argument to 'sizeof' in 'memset' call is the
same expression as the destination; did you mean to dereference it?
      [-Werror,-Wsizeof-pointer-memaccess]

Change-Id: I3b5e91c32bcb01411696e18e502b799a8e19c720
Reviewed-on: http://review.couchbase.org/13947
Tested-by: Sergey Avseyev <sergey.avseyev@gmail.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>
  • Loading branch information...
1 parent f223590 commit 802225e894cbf32a7945933d06e827721828d0f6 @avsej avsej committed with trondn Mar 15, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/vbucket.c
View
@@ -138,7 +138,7 @@ void vbucket_config_destroy(VBUCKET_CONFIG_HANDLE vb) {
free(vb->vbuckets);
free(vb->continuum);
free(vb->errmsg);
- memset(vb, 0xff, sizeof(vb));
+ memset(vb, 0xff, sizeof(struct vbucket_config_st));
free(vb);
}

0 comments on commit 802225e

Please sign in to comment.