Merge pull request #4621 from alexanderkyte/strdup_env
[mono.git] / mono / metadata / appdomain.c
index bfd0a23e506637525fb7cc13ec5a10c9f611398c..790dc504ed56b80fb71f8b2249a5eb0070eb2531 100644 (file)
@@ -2208,8 +2208,9 @@ ves_icall_System_AppDomain_InternalUnload (gint32 domain_id, MonoError *error)
         * Unloading seems to cause problems when running NUnit/NAnt, hence
         * this workaround.
         */
-       if (g_getenv ("MONO_NO_UNLOAD"))
+       if (g_hasenv ("MONO_NO_UNLOAD"))
                return;
+
 #ifdef __native_client__
        return;
 #endif