Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/corlib/System/String.cs')
-rw-r--r--mcs/class/corlib/System/String.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/mcs/class/corlib/System/String.cs b/mcs/class/corlib/System/String.cs
index a2d5b21d125..06a9914af4e 100644
--- a/mcs/class/corlib/System/String.cs
+++ b/mcs/class/corlib/System/String.cs
@@ -1531,7 +1531,7 @@ namespace System
if (totalWidth < this.length)
return this;
- if (this.Length == 0)
+ if (totalWidth == 0)
return String.Empty;
String tmp = InternalAllocateStr (totalWidth);