Skip to contentSkip to conversation

qtbase: don't pass empty filename to function

PATCH New Samuli Piippo 1 participant 1 message May 9, 2018

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 qtbase: don't pass empty filename to function

The environment variable is empty when running qmake from SDK or in device, which gives 'Empty filename passed to function' warning.

---
 ...3-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
recipes-qt/qt5/qtbase/0003-qlibraryinfo-allow-to-set-qt.conf-from-the-outside-u.patch +1 -1
index d0d5390..83011d6 100644
@@ -29,7 +29,7 @@ index 422d08f..a59df4f 100644
 -    QString qtconfig = qmake_libraryInfoFile();
 +    QByteArray config = getenv("OE_QMAKE_QTCONF_PATH");
 +    QString qtconfig = QFile::decodeName(config);
-+    if(!QFile::exists(qtconfig))
++    if(qtconfig.isEmpty() || !QFile::exists(qtconfig))
 +        qtconfig = qmake_libraryInfoFile();
      if (QFile::exists(qtconfig))
          return new QSettings(qtconfig, QSettings::IniFormat);
Signature · 1 line
2.17.0