Skip to content

Commit

Permalink
[#197] Fixed string comparison.
Browse files Browse the repository at this point in the history
  • Loading branch information
korydraughn authored and alanking committed May 12, 2022
1 parent 9748dd4 commit bd7e324
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions storage_tiering_utilities.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@

#include "storage_tiering_utilities.hpp"

#include "rcMisc.h"

#include <cstring>

namespace irods {
std::string any_to_string(boost::any& _a) {
if(_a.type() == typeid(std::string)) {
Expand All @@ -12,7 +14,7 @@ namespace irods {
}
else if(_a.type() == typeid(msParam_t*)) {
msParam_t* msp = boost::any_cast<msParam_t*>(_a);
if(msp->type == STR_MS_T) {
if(std::strcmp(msp->type, STR_MS_T) == 0) {
return static_cast<char*>(msp->inOutStruct);
}
else {
Expand Down

0 comments on commit bd7e324

Please sign in to comment.