From: Jay Krell Date: Thu, 13 Jun 2019 08:24:12 +0000 (-0700) Subject: threadpool.c: In function 'mono_threadpool_remove_domain_jobs': X-Git-Tag: submit/tizen/20210909.063632~10331^2~5^2~1155 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2638ed6252879098969f814077884ed989bc4270;p=platform%2Fupstream%2Fdotnet%2Fruntime.git threadpool.c: In function 'mono_threadpool_remove_domain_jobs': 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 --- diff --git a/src/mono/mono/metadata/threadpool.c b/src/mono/mono/metadata/threadpool.c index d64d9fe..ff0b588 100644 --- a/src/mono/mono/metadata/threadpool.c +++ b/src/mono/mono/metadata/threadpool.c @@ -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;