]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
test: objectstore: chain_xattr: fix wrong memset usage to fill buf
authorWeibing Zhang <atheism.zhang@gmail.com>
Sat, 1 Apr 2017 05:24:42 +0000 (13:24 +0800)
committerWeibing Zhang <atheism.zhang@gmail.com>
Sat, 1 Apr 2017 05:24:42 +0000 (13:24 +0800)
commitfa1fe5fc1d0ec300a148a562319c97b501ec5ad8
tree3433199d56cd8259272cab0112de0098bd927216
parentc4ba26724593d66237bf30d99434b17a07147d41
test: objectstore: chain_xattr: fix wrong memset usage to fill buf

    Current usage:
        memset(buf, sizeof(buf), 0x1F);
    should be:
        memset(buf, 0x1F, sizeof(buf));
    to fill the buffer with '0x1F'.

Signed-off-by: Weibing Zhang <zhangweibing@unitedstack.com>
src/test/objectstore/chain_xattr.cc