From bd7e324a791c899f6fe339ac26b4708d118293a0 Mon Sep 17 00:00:00 2001 From: Kory Draughn Date: Mon, 25 Apr 2022 17:41:18 -0400 Subject: [PATCH] [#197] Fixed string comparison. --- storage_tiering_utilities.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/storage_tiering_utilities.cpp b/storage_tiering_utilities.cpp index 40eed42..543b0cf 100644 --- a/storage_tiering_utilities.cpp +++ b/storage_tiering_utilities.cpp @@ -1,7 +1,9 @@ - #include "storage_tiering_utilities.hpp" + #include "rcMisc.h" +#include + namespace irods { std::string any_to_string(boost::any& _a) { if(_a.type() == typeid(std::string)) { @@ -12,7 +14,7 @@ namespace irods { } else if(_a.type() == typeid(msParam_t*)) { msParam_t* msp = boost::any_cast(_a); - if(msp->type == STR_MS_T) { + if(std::strcmp(msp->type, STR_MS_T) == 0) { return static_cast(msp->inOutStruct); } else {