Skip to content

Commit

Permalink
Fix build on CentOS 6
Browse files Browse the repository at this point in the history
Change-Id: Ibb0852760c7e1000aad822ee7063e35ff420b360
Reviewed-on: http://review.couchbase.org/112739
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Sergey Avseyev <sergey.avseyev@gmail.com>
  • Loading branch information
avsej committed Jul 31, 2019
1 parent 89edb15 commit f68184c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bucketconfig/bc_file.cc
Expand Up @@ -236,7 +236,7 @@ static std::string mkcachefile(const char *name, const char *bucket)
bool is_dir = false;
if (name != NULL) {
buffer = std::string(name);
if (buffer.back() == '/') {
if (buffer.size() > 0 && buffer[buffer.size() - 1] == '/') {
is_dir = true;
}
} else {
Expand Down

0 comments on commit f68184c

Please sign in to comment.