# HG changeset patch # User Augie Fackler # Date 2015-08-18 20:39:26 # 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 --git a/mercurial/parsers.c b/mercurial/parsers.c --- a/mercurial/parsers.c +++ b/mercurial/parsers.c @@ -478,9 +478,6 @@ static PyObject *parse_dirstate(PyObject &str, &readlen)) goto quit; - if (readlen < 0) - goto quit; - len = readlen; /* read parents */