From 74f35191e0e78eb6df4527c299b28fc469bc8066 Mon Sep 17 00:00:00 2001 From: Matthieu Gallien Date: Sun, 2 Oct 2022 11:31:50 +0200 Subject: [PATCH] do not ignore return value Signed-off-by: Matthieu Gallien --- src/libsync/vfs/cfapi/vfs_cfapi.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/libsync/vfs/cfapi/vfs_cfapi.cpp b/src/libsync/vfs/cfapi/vfs_cfapi.cpp index fda83f77b..3ac65422a 100644 --- a/src/libsync/vfs/cfapi/vfs_cfapi.cpp +++ b/src/libsync/vfs/cfapi/vfs_cfapi.cpp @@ -371,8 +371,7 @@ void VfsCfApi::requestHydration(const QString &requestId, const QString &path) // Set in the database that we should download the file SyncJournalFileRecord record; - journal->getFileRecord(relativePath, &record); - if (!record.isValid()) { + if (!journal->getFileRecord(relativePath, &record) || !record.isValid()) { qCInfo(lcCfApi) << "Couldn't hydrate, did not find file in db"; emit hydrationRequestFailed(requestId); return;