mirror of
https://bitbucket.org/smil3y/katie.git
synced 2025-02-24 10:52:56 +00:00
store native file path outside loop in QFSFileEngine::open()
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
This commit is contained in:
parent
7ced9a4e78
commit
a4bb0a9759
1 changed files with 2 additions and 1 deletions
|
@ -181,8 +181,9 @@ bool QFSFileEngine::open(QIODevice::OpenMode openMode)
|
|||
}
|
||||
|
||||
// Try to open the file.
|
||||
QByteArray native = d->fileEntry.nativeFilePath();
|
||||
do {
|
||||
d->fd = QT_OPEN(d->fileEntry.nativeFilePath().constData(), flags, 0666);
|
||||
d->fd = QT_OPEN(native.constData(), flags, 0666);
|
||||
} while (d->fd == -1 && errno == EINTR);
|
||||
|
||||
// On failure, return and report the error.
|
||||
|
|
Loading…
Add table
Reference in a new issue