2004-04-02 Dick Porter <dick@ximian.com>
[mono.git] / mcs / class / corlib / System / String.cs
index 0d10a3931b161103e46d76f02351a34b480dccd7..6d92bf96d80c38354604421e4c379c89efe85963 100644 (file)
@@ -656,6 +656,10 @@ namespace System
                        if (this == String.Empty)
                                return this;
 
+                       if (oldValue.Length == 0 || oldValue[0] == '\0') {
+                               return(this);
+                       }
+                       
                        if (newValue == null)
                                newValue = String.Empty;