Fix an uninitialized memory error in the aot compiler.
authorZoltan Varga <vargaz@gmail.com>
Thu, 6 Jan 2011 00:56:56 +0000 (01:56 +0100)
committerZoltan Varga <vargaz@gmail.com>
Thu, 6 Jan 2011 00:56:56 +0000 (01:56 +0100)
mono/mini/aot-compiler.c

index 35d9c911840b8a231abdb36f6ad57e15bddffd80..f774b9641648222eb417a2ba813433b29b734518 100644 (file)
@@ -3862,7 +3862,7 @@ emit_klass_info (MonoAotCompile *acfg, guint32 token)
 static char*
 get_plt_entry_debug_sym (MonoAotCompile *acfg, MonoJumpInfo *ji, GHashTable *cache)
 {
-       char *debug_sym;
+       char *debug_sym = NULL;
 
        switch (ji->type) {
        case MONO_PATCH_INFO_METHOD: