Merge pull request #4621 from alexanderkyte/strdup_env
[mono.git] / mono / metadata / image.c
index 688bc3c50ba3decfab81a59a1f5b476dfbc7aea0..eb4d686412e586b822e0f064748cc7e7117c2b64 100644 (file)
@@ -256,7 +256,7 @@ mono_images_init (void)
        for(hash_idx = 0; hash_idx < IMAGES_HASH_COUNT; hash_idx++)
                loaded_images_hashes [hash_idx] = g_hash_table_new (g_str_hash, g_str_equal);
 
-       debug_assembly_unload = g_getenv ("MONO_DEBUG_ASSEMBLY_UNLOAD") != NULL;
+       debug_assembly_unload = g_hasenv ("MONO_DEBUG_ASSEMBLY_UNLOAD");
 
        install_pe_loader ();