[Mono-list] [PATCH] _MonoDomain error?

Dennis Haney davh@davh.dk
31 May 2002 22:12:51 +0200


I've noticed that in mono_init we call

	domain->friendly_name = g_path_get_basename (filename);

return value of g_path_get_basename is char*, but
domain->friendly_name is a char**, shouldnt it just have been a char*?
Everywhere else I can see its being used its used as a char*, so:


Index: appdomain.h
===================================================================
RCS file: /mono/mono/mono/metadata/appdomain.h,v
retrieving revision 1.18
diff -u -b -B -r1.18 appdomain.h
--- appdomain.h	23 May 2002 07:44:00 -0000	1.18
+++ appdomain.h	31 May 2002 20:07:46 -0000
@@ -65,7 +65,7 @@
 	GHashTable         *env;
 	GHashTable         *assemblies;
 	MonoAppDomainSetup *setup;
-	char*              *friendly_name;
+	char               *friendly_name;
 	MonoGHashTable     *ldstr_table;
 	MonoGHashTable     *class_vtable_hash;
 	MonoGHashTable     *proxy_vtable_hash;


-- 
Dennis
use Inline C => qq{void p(char*g){printf("Just Another %s Hacker\n",g);}};p("Perl");