diff --git a/mercurial/diffhelpers.c b/mercurial/diffhelpers.c --- a/mercurial/diffhelpers.c +++ b/mercurial/diffhelpers.c @@ -35,7 +35,7 @@ static void _fix_newline(PyObject *hunk, hline = PyBytes_FromStringAndSize(l, sz-1); if (!hline) { - return NULL; + return; } if (c == ' ' || c == '+') {