Author: zoltan
Date: 2005-04-04 09:07:51 -0400 (Mon, 04 Apr 2005)
New Revision: 42516

Modified:
   trunk/mono/mono/dis/ChangeLog
   trunk/mono/mono/dis/get.c
Log:
2005-04-04  Zoltan Varga  <[EMAIL PROTECTED]>

        * get.c (get_constant): Applied patch from Ankit Jain ([EMAIL 
PROTECTED]). Fixes #74367.


Modified: trunk/mono/mono/dis/ChangeLog
===================================================================
--- trunk/mono/mono/dis/ChangeLog       2005-04-04 12:55:20 UTC (rev 42515)
+++ trunk/mono/mono/dis/ChangeLog       2005-04-04 13:07:51 UTC (rev 42516)
@@ -1,3 +1,7 @@
+2005-04-04  Zoltan Varga  <[EMAIL PROTECTED]>
+
+       * get.c (get_constant): Applied patch from Ankit Jain ([EMAIL 
PROTECTED]). Fixes #74367.
+
 2005-03-29  Sebastien Pouliot  <[EMAIL PROTECTED]>
 
        * dis-cil.c, dump.c: Add mono-compiler.h header to allow/ease 

Modified: trunk/mono/mono/dis/get.c
===================================================================
--- trunk/mono/mono/dis/get.c   2005-04-04 12:55:20 UTC (rev 42515)
+++ trunk/mono/mono/dis/get.c   2005-04-04 13:07:51 UTC (rev 42516)
@@ -1898,8 +1898,13 @@
        case MONO_TYPE_STRING: {
                gchar *str;
                int i, j, tspaces = (len%16);
-               GString *res = g_string_new ("bytearray (\n\t");
+               GString *res;
 
+               if (len == 0)
+                       return g_strdup_printf ("\"\"");
+
+               res = g_string_new ("bytearray (\n\t");
+
                for(i = 1; i <= len; ++i) {
                        g_string_append_printf(res, "%02x ", ptr[i-1]);
 

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to