From 73bcaef3490ce5421afd93a24ffb70a5a5c6fc22 Mon Sep 17 00:00:00 2001 From: Dan Mick Date: Thu, 4 May 2017 20:15:58 -0700 Subject: [PATCH] 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 --- src/test/librbd/test_librbd.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/src/test/librbd/test_librbd.cc b/src/test/librbd/test_librbd.cc index edda51c77b4..f16fbcca2a9 100644 --- a/src/test/librbd/test_librbd.cc +++ b/src/test/librbd/test_librbd.cc @@ -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; }