Fix a crash if a profiler is not found. Fixes #1855.
authorZoltan Varga <vargaz@gmail.com>
Fri, 4 Nov 2011 15:52:05 +0000 (16:52 +0100)
committerZoltan Varga <vargaz@gmail.com>
Fri, 4 Nov 2011 15:52:27 +0000 (16:52 +0100)
mono/metadata/profiler.c

index bae1c45bda41782903007b76ba996e8d5c046224..5de7b8e9903351a59cd54f55c918c4a2ee216678 100644 (file)
@@ -1158,7 +1158,7 @@ mono_profiler_load (const char *desc)
                                res = FALSE;
 #endif
                                if (!res)
-                                       g_warning ("The %s profiler wasn't found in the main executable nor could it be loaded from '%s'.", libname);
+                                       g_warning ("The '%s' profiler wasn't found in the main executable nor could it be loaded from '%s'.", mname, libname);
                        g_free (libname);
                }
                g_free (mname);