Navigation Menu

Skip to content

Commit

Permalink
Use File::exists() to avoid an error in Storage::exists().
Browse files Browse the repository at this point in the history
  • Loading branch information
s-yata committed Jun 25, 2013
1 parent 251b43b commit 6813294
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/grnxx/storage/storage_impl.cpp
Expand Up @@ -155,6 +155,9 @@ bool StorageImpl::exists(const char *path) {
GRNXX_ERROR() << "invalid argument: path = nullptr";
return false;
}
if (!File::exists(path)) {
return false;
}
std::unique_ptr<Storage> storage(open(path, STORAGE_READ_ONLY));
if (!storage) {
return false;
Expand Down

0 comments on commit 6813294

Please sign in to comment.