From 41786a43688a48e5117f278faae1b66b20940d86 Mon Sep 17 00:00:00 2001 From: Jay Krell Date: Thu, 13 Jun 2019 01:46:19 -0700 Subject: [PATCH] marshal.c: In function 'mono_marshal_get_runtime_invoke_full': marshal.c:2662:8: warning: 'sig_cache' may be used uninitialized in this function [-Wmaybe-uninitialized] res = (MonoMethod *)g_hash_table_lookup (sig_cache, sig_key); ~~~~^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ Commit migrated from https://github.com/mono/mono/commit/faadb64774f9db09b2e026c43e3682b9268d9a25 --- src/mono/mono/metadata/marshal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mono/mono/metadata/marshal.c b/src/mono/mono/metadata/marshal.c index 6d58878..8d3b2fc 100644 --- a/src/mono/mono/metadata/marshal.c +++ b/src/mono/mono/metadata/marshal.c @@ -2511,7 +2511,7 @@ mono_marshal_get_runtime_invoke_full (MonoMethod *method, gboolean virtual_, gbo { MonoMethodSignature *sig, *csig, *callsig; MonoMethodBuilder *mb; - GHashTable *method_cache = NULL, *sig_cache; + GHashTable *method_cache = NULL, *sig_cache = NULL; GHashTable **cache_table = NULL; MonoClass *target_klass; MonoMethod *res = NULL; -- 2.7.4