marshal.c: In function 'mono_marshal_get_runtime_invoke_full':
authorJay Krell <jaykrell@microsoft.com>
Thu, 13 Jun 2019 08:46:19 +0000 (01:46 -0700)
committerLarry Ewing <lewing@microsoft.com>
Tue, 18 Jun 2019 02:53:08 +0000 (21:53 -0500)
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

index 6d58878..8d3b2fc 100644 (file)
@@ -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;