From 9379dd94103e4efd5be8867892f0a562c224d26d Mon Sep 17 00:00:00 2001 From: Fabian Bumberger Date: Wed, 19 Mar 2014 18:03:34 +0100 Subject: [PATCH] QNX: Fix crash in bb_select Change-Id: Ic1a414c9d89b790ed9fb9f5c989b6018de78b465 Reviewed-by: Peter Hartmann Reviewed-by: Bernd Weimer Reviewed-by: Oswald Buddenhagen --- src/corelib/kernel/qcore_unix.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/corelib/kernel/qcore_unix.cpp b/src/corelib/kernel/qcore_unix.cpp index 8d788419fb..568453ec07 100644 --- a/src/corelib/kernel/qcore_unix.cpp +++ b/src/corelib/kernel/qcore_unix.cpp @@ -131,10 +131,10 @@ int bb_select(QList 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); } }