Mercurial > hg
comparison mercurial/parsers.c @ 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 | b1634b7804c7 |
children | b970418bbafe |
comparison
equal
deleted
inserted
replaced
26050:822f46b80fa9 | 26051:af090796cb33 |
---|---|
476 &PyDict_Type, &dmap, | 476 &PyDict_Type, &dmap, |
477 &PyDict_Type, &cmap, | 477 &PyDict_Type, &cmap, |
478 &str, &readlen)) | 478 &str, &readlen)) |
479 goto quit; | 479 goto quit; |
480 | 480 |
481 if (readlen < 0) | |
482 goto quit; | |
483 | |
484 len = readlen; | 481 len = readlen; |
485 | 482 |
486 /* read parents */ | 483 /* read parents */ |
487 if (len < 40) | 484 if (len < 40) |
488 goto quit; | 485 goto quit; |