test/librbd/test_librbd.cc: set *features even if RBD_FEATURES is unset

If RBD_FEATURES is not in the environment, set *features to 0 in
get_features(); callers rely on a valid return value.  (This was
breaking on arm64.)

Fixes: http://tracker.ceph.com/issues/19865
Signed-off-by: Dan Mick <dan.mick@redhat.com>
This commit is contained in:
Dan Mick 2017-05-04 20:15:58 -07:00
parent 77a43573ab
commit 73bcaef349

View File

@ -84,6 +84,7 @@ static int get_features(bool *old_format, uint64_t *features)
cout << "using new format!" << std::endl;
} else {
*old_format = true;
*features = 0;
cout << "using old format" << std::endl;
}