diff options
author | João Abecasis <joao.abecasis@nokia.com> | 2010-12-13 17:06:19 (GMT) |
---|---|---|
committer | João Abecasis <joao.abecasis@nokia.com> | 2010-12-13 17:49:11 (GMT) |
commit | 496a3f83138e807150f2ff06f5462f7f9ab519fc (patch) | |
tree | 31255a5864d477b2db87708ee1c245ba2bd1bbe2 /examples/script/context2d | |
parent | 14f4ebce80ec7d39287b445192b25111a49fff6b (diff) | |
download | Qt-496a3f83138e807150f2ff06f5462f7f9ab519fc.zip Qt-496a3f83138e807150f2ff06f5462f7f9ab519fc.tar.gz Qt-496a3f83138e807150f2ff06f5462f7f9ab519fc.tar.bz2 |
Don't rely on uninitialized data
When we fail to get file attributes, the file times are left in an
uninitialized state, which may lead to a crash. In particular, this was
showing up in QMessageBox's autotest, where the lastModified time is
being queried on a non-existing file.
Before the refactoring, we were returning a default constructed
QDateTime to queries about different file times, with this change we
will return the time corresponding to a default constructed FILETIME
object.
Reviewed-by: Shane Kearns
Diffstat (limited to 'examples/script/context2d')
0 files changed, 0 insertions, 0 deletions