Fixed checking HOME variable return value using isEmpty()
authorPasi Petäjäjärvi <pasi.petajajarvi@digia.com>
Wed, 2 Jan 2013 15:43:39 +0000 (17:43 +0200)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 25 Jan 2013 07:51:09 +0000 (08:51 +0100)
commit05b4000e01ff5785739617c3069fbe0b0d36a606
tree351c09c3fb919507003a9ebac09d71cd8d850cde
parenta909dd0ea48af9428dbbeac1504df0eb68b63df4
Fixed checking HOME variable return value using isEmpty()

Return value of the QFile::decodeName(qgetenv("HOME")); is never null
if HOME environment variable is not set. So need to check the return
value using isEmpty() instead.

Task-number: QTBUG-28912
Change-Id: Ic57b1978d63e99b056cde35ca8cb9d2a07ff8ce8
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: Samuel Rødal <samuel.rodal@digia.com>
src/corelib/io/qfilesystemengine_unix.cpp
tests/auto/corelib/io/qdir/tst_qdir.cpp