projects
/
mono.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Fixed string compare ( != '' / Length != 0)
[mono.git]
/
mcs
/
class
/
System
/
System
/
UriParseComponents.cs
diff --git
a/mcs/class/System/System/UriParseComponents.cs
b/mcs/class/System/System/UriParseComponents.cs
index 8eca651742e80042640ac56e5709096134c8f4aa..32ec00e0bbe582fdaf18ae8b6bc2457378f97dd6 100644
(file)
--- a/
mcs/class/System/System/UriParseComponents.cs
+++ b/
mcs/class/System/System/UriParseComponents.cs
@@
-102,7
+102,7
@@
namespace System {
{
string part = state.remaining;
- if
(part[0] != '/' && part
[1] != '/')
+ if
(part.Length < 2 || part [0] != '/' || part
[1] != '/')
return part.Length > 0;
state.remaining = part.Substring (2);