Merge pull request #4621 from alexanderkyte/strdup_env
[mono.git] / mono / metadata / threadpool-io.c
index efff08c45240111f006b7388b90f9eb498258c29..a40ed6de5ea1e62c8c98d1082d18b5f3b919b365 100644 (file)
@@ -546,7 +546,7 @@ initialize (void)
        threadpool_io->updates_size = 0;
 
        threadpool_io->backend = backend_poll;
-       if (g_getenv ("MONO_ENABLE_AIO") != NULL) {
+       if (g_hasenv ("MONO_ENABLE_AIO")) {
 #if defined(HAVE_EPOLL)
                threadpool_io->backend = backend_epoll;
 #elif defined(HAVE_KQUEUE)