Android: remove environment variable warnings at app startup.
Change-Id: I8542809fd16465a29b4fb7e8276b63d71e1b9c0e Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
This commit is contained in:
parent
e358c0095e
commit
283ba0ef01
@ -455,7 +455,7 @@ static jboolean startQtApplication(JNIEnv *env, jobject /*object*/, jstring para
|
||||
env->ReleaseStringUTFChars(environmentString, nativeString);
|
||||
m_applicationParams=string.split('\t');
|
||||
foreach (string, m_applicationParams) {
|
||||
if (putenv(string.constData()))
|
||||
if (!string.isEmpty() && putenv(string.constData()))
|
||||
qWarning() << "Can't set environment" << string;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user