Skip to content

Commit

Permalink
Crash fix
Browse files Browse the repository at this point in the history
  • Loading branch information
ChristopheLarchier committed Nov 8, 2024
1 parent c67db64 commit efe0b67
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/server/appserver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2391,12 +2391,12 @@ bool AppServer::vfsUpdateMetadata(int syncDbId, const SyncPath &path, const Sync
return false;
}

QByteArray fileId(id.c_str());
QString *errorStr = nullptr;
if (!_vfsMap[syncDbId]->updateMetadata(SyncName2QStr(path.native()), creationTime, modtime, size, fileId, errorStr)) {
const QByteArray fileId(id.c_str());
QString errorStr;
if (!_vfsMap[syncDbId]->updateMetadata(SyncName2QStr(path.native()), creationTime, modtime, size, fileId, &errorStr)) {
LOGW_WARN(Log::instance()->getLogger(),
L"Error in Vfs::updateMetadata for syncDbId=" << syncDbId << L" and path=" << Path2WStr(path).c_str());
error = errorStr ? errorStr->toStdString() : "";
error = errorStr.toStdString();
return false;
}

Expand Down

0 comments on commit efe0b67

Please sign in to comment.