Fixed compile issue with macro name and C string

This commit is contained in:
David Allen 2022-07-30 09:44:22 -05:00
parent 060d19bda4
commit c28ee29250
2 changed files with 2 additions and 2 deletions

View file

@ -320,7 +320,7 @@ namespace gdpm::cache{
char *errmsg = nullptr;
std::string sql;
int rc = sqlite3_open(cache_path, &db);
int rc = sqlite3_open(cache_path.c_str(), &db);
if(rc != SQLITE_OK){
log::error("delete_packages.sqlite3_open(): {}", sqlite3_errmsg(db));
sqlite3_close(db);