changeset 26051:af090796cb33

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.
author Augie Fackler <augie@google.com>
date Tue, 18 Aug 2015 16:39:26 -0400
parents 822f46b80fa9
children b970418bbafe
files mercurial/parsers.c
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 */