summaryrefslogtreecommitdiffstats
path: root/src/plugins/platforms/android/src/androidjnimain.cpp
diff options
context:
space:
mode:
authorYoann Lopes <yoann.lopes@digia.com>2013-09-24 15:45:11 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-25 13:25:33 +0200
commit283ba0ef014b0af64318c238819e54f1fa9d876f (patch)
tree8fa9c1c1fd6add86ed93ebdd28312e620f814c2e /src/plugins/platforms/android/src/androidjnimain.cpp
parente358c0095e405d5be5cf9c59a59dd7bb12fba7a4 (diff)
Android: remove environment variable warnings at app startup.
Change-Id: I8542809fd16465a29b4fb7e8276b63d71e1b9c0e Reviewed-by: Paul Olav Tvete <paul.tvete@digia.com>
Diffstat (limited to 'src/plugins/platforms/android/src/androidjnimain.cpp')
-rw-r--r--src/plugins/platforms/android/src/androidjnimain.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/android/src/androidjnimain.cpp b/src/plugins/platforms/android/src/androidjnimain.cpp
index 5941737fde..b51c15c5d9 100644
--- a/src/plugins/platforms/android/src/androidjnimain.cpp
+++ b/src/plugins/platforms/android/src/androidjnimain.cpp
@@ -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;
}