# HG changeset patch # User Augie Fackler # Date 1439930366 14400 # Node ID af090796cb337d66d72a6b2ceb31b7ceb74e1197 # Parent 822f46b80fa956b71ed3fd366451ad28e2abead8 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. diff -r 822f46b80fa9 -r af090796cb33 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 */