fix crash

This commit is contained in:
Chee Yee
2023-02-28 19:46:05 -08:00
parent 2ee0e9ae74
commit 5aef0f648d
+3 -2
View File
@@ -145,6 +145,7 @@ int GDriveClient::RequestAuthorization()
GDriveClient::GDriveClient()
{
client = nullptr;
path_id_map.insert(std::make_pair("/", "root"));
}
@@ -702,6 +703,6 @@ int GDriveClient::Quit()
void GDriveClient::SetAccessToken(const std::string &token)
{
if (client != nullptr)
client->set_bearer_token_auth(token);
if (this->client != nullptr)
this->client->set_bearer_token_auth(token);
}