Author: miguel
Date: 2007-11-09 13:30:00 -0500 (Fri, 09 Nov 2007)
New Revision: 89336
Modified:
trunk/moon/src/ChangeLog
trunk/moon/src/value.h
Log:
First step
Modified: trunk/moon/src/ChangeLog
===================================================================
--- trunk/moon/src/ChangeLog 2007-11-09 18:26:54 UTC (rev 89335)
+++ trunk/moon/src/ChangeLog 2007-11-09 18:30:00 UTC (rev 89336)
@@ -1,3 +1,7 @@
+2007-11-09 Miguel de Icaza <[EMAIL PROTECTED]>
+
+ * value.h (struct Value): Cope with NULL strings.
+
2007-11-09 Jackson Harper <[EMAIL PROTECTED]>
* xaml.cpp: Closepath needs to draw a line to the path's starting
Modified: trunk/moon/src/value.h
===================================================================
--- trunk/moon/src/value.h 2007-11-09 18:26:54 UTC (rev 89335)
+++ trunk/moon/src/value.h 2007-11-09 18:30:00 UTC (rev 89336)
@@ -194,6 +194,11 @@
return false;
if (k == Type::STRING) {
+ if (u.s == NULL){
+ return v.u.s == NULL;
+ } else if (v.u.s == NULL)
+ return FALSE;
+
return !strcmp (u.s, v.u.s);
}
else {
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches