parsers: drop spurious check of readlen value
authorAugie Fackler <augie@google.com>
Tue, 18 Aug 2015 16:39:26 -0400
changeset 26051 af090796cb33
parent 26050 822f46b80fa9
child 26052 b970418bbafe
parsers: drop spurious check of readlen value We're about to check if len < 40 after assigning readlen to len, which means that if len < 40 we'll still abort, but I'm about to add a sensible exception to that failure, so let's just discard this useless check.
mercurial/parsers.c
--- a/mercurial/parsers.c	Tue Aug 18 16:32:41 2015 -0400
+++ b/mercurial/parsers.c	Tue Aug 18 16:39:26 2015 -0400
@@ -478,9 +478,6 @@
 			      &str, &readlen))
 		goto quit;
 
-	if (readlen < 0)
-		goto quit;
-
 	len = readlen;
 
 	/* read parents */