threadpool.c: In function 'mono_threadpool_remove_domain_jobs':
authorJay Krell <jaykrell@microsoft.com>
Thu, 13 Jun 2019 08:24:12 +0000 (01:24 -0700)
committerLarry Ewing <lewing@microsoft.com>
Tue, 18 Jun 2019 02:53:08 +0000 (21:53 -0500)
threadpool.c:571:91: warning: 'end' may be used uninitialized in this function [-Wmaybe-uninitialized]
    res = mono_coop_cond_timedwait (&tpdomain->cleanup_cond, &threadpool.domains_lock, end - now);

Commit migrated from https://github.com/mono/mono/commit/a37f71a4ea64703100f89ba4108fce661ebae317

src/mono/mono/metadata/threadpool.c

index d64d9fe..ff0b588 100644 (file)
@@ -513,7 +513,7 @@ mono_threadpool_end_invoke (MonoAsyncResult *ares, MonoArray **out_args, MonoObj
 gboolean
 mono_threadpool_remove_domain_jobs (MonoDomain *domain, int timeout)
 {
-       gint64 end;
+       gint64 end = 0;
        ThreadPoolDomain *tpdomain;
        gboolean ret;