Skip to content

Commit

Permalink
also use w/ ternary operator
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelChirico authored Mar 10, 2022
1 parent a96e613 commit f6a6a68
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/DbConnection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ DbConnection::DbConnection(const std::string& path, const bool allow_ext, const
busy_callback_(NULL) {

// Get the underlying database connection
int rc = sqlite3_open_v2(path.c_str(), &pConn_, flags, vfs.size() ? vfs.c_str() : NULL);
int rc = sqlite3_open_v2(path.c_str(), &pConn_, flags, vfs.empty() ? NULL : vfs.c_str());
if (rc != SQLITE_OK) {
stop("Could not connect to database:\n%s", getException());
}
Expand Down

0 comments on commit f6a6a68

Please sign in to comment.