Skip to content

Commit

Permalink
Change test to use strieq
Browse files Browse the repository at this point in the history
  • Loading branch information
jackdelv committed Oct 25, 2024
1 parent 310e635 commit f53dc71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions common/remote/hooks/azure/azurefile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -466,8 +466,8 @@ AzureFile::AzureFile(const char *_azureFileName) : fullName(_azureFileName)
if (!api)
throw makeStringExceptionV(99, "No storage api defined for plane %s", planeName.str());

constexpr size_t lenPrefix = strlen(azureBlobPrefix);
if ((strncmp(api, azureBlobPrefix, lenPrefix-1) != 0))
StringBuffer azureBlobAPI(strlen(azureBlobPrefix) - 1, azureBlobPrefix);
if (!strieq(api, azureBlobAPI.str()))
throw makeStringExceptionV(99, "Storage api for plane %s is not azureblob", planeName.str());

unsigned numDevices = plane->getPropInt("@numDevices", 1);
Expand Down

0 comments on commit f53dc71

Please sign in to comment.