# HG changeset patch # User Augie Fackler # Date 2015-01-28 18:34:20 # Node ID f1c127df7c4f645db6538a56d9a1c416505796cc # Parent 8f02682ff3b03a86abc09ff5b0397842ea70ba07 diffhelpers: fix botched return statement from c8e7fa41bfc5 Spotted by Sean Farley using clang. 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 == '+') {