Fix a few nits (#1645)

Make some strings more const, initialize members, and abort if lock
initialization fails.  Partially found via clang-tidy.
This commit is contained in:
Andrew Gaul
2021-05-06 19:40:35 +09:00
committed by GitHub
parent cb9148f6cd
commit 8ef01d37a9
9 changed files with 18 additions and 18 deletions

View File

@ -379,7 +379,7 @@ std::string s3fs_hex(const unsigned char* input, size_t length, bool lower)
char* s3fs_base64(const unsigned char* input, size_t length)
{
static const char* base = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
static const char base[] = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";
char* result;
if(!input || 0 == length){