Diffusion KIO 4fb2bd0ffc4c

[JobTest] Fix unit test intermittent failure

Authored by ahmadsamir on Apr 11 2020, 9:18 AM.

Description

[JobTest] Fix unit test intermittent failure

In statWithInode, assigning the return from job->statResult(), which
returns a const &, to a const & could lead to a crash if the job (KJob)
finishes and get deleted before we access the KIO::UDSEntry var. Don't
use a & in that case.

ACK'ed by dfaure in https://phabricator.kde.org/D28478

Details

Committed
ahmadsamirApr 11 2020, 9:31 AM
Parents
R241:176ce2e6e1a5: GIT_SILENT Upgrade KF5 version to 5.70.0.
Branches
Unknown
Tags
Unknown