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 <[email protected]>
Reviewed-by: Sergey Avseyev <[email protected]>
Reviewed-on: http://review.couchbase.org/117252
  • Loading branch information
avsej committed Nov 1, 2019
1 parent 0430b85 commit dabf6d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/bucketconfig/bc_file.cc
Original file line number Diff line number Diff line change
Expand Up @@ -231,7 +231,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 dabf6d5

Please sign in to comment.