QNX: Fix crash in bb_select

Change-Id: Ic1a414c9d89b790ed9fb9f5c989b6018de78b465
Reviewed-by: Peter Hartmann <phartmann@blackberry.com>
Reviewed-by: Bernd Weimer <bweimer@blackberry.com>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
This commit is contained in:
Fabian Bumberger 2014-03-19 18:03:34 +01:00 committed by The Qt Project
parent 70624ed9d6
commit 9379dd9410

View File

@ -131,10 +131,10 @@ int bb_select(QList<QSocketNotifier *> socketNotifiers, int nfds, fd_set *fdread
socketNotifiersEnabled.reserve(socketNotifiers.count());
for (int a = 0; a < socketNotifiers.count(); ++a) {
if (socketNotifiers.at(a) && socketNotifiers.at(a)->isEnabled()) {
socketNotifiersEnabled[a] = true;
socketNotifiersEnabled.append(true);
socketNotifiers.at(a)->setEnabled(false);
} else {
socketNotifiersEnabled[a] = false;
socketNotifiersEnabled.append(false);
}
}