Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/diffhelpers.c @ 23964:f1c127df7c4f stable
diffhelpers: fix botched return statement from c8e7fa41bfc5
Spotted by Sean Farley using clang.
author | Augie Fackler <raf@durin42.com> |
---|---|
date | Wed, 28 Jan 2015 13:34:20 -0500 |
parents | c8e7fa41bfc5 |
children | 2f51f4c535d2 |
comparison
equal
deleted
inserted
replaced
23963:8f02682ff3b0 | 23964:f1c127df7c4f |
---|---|
33 /* tolerate CRLF in last line */ | 33 /* tolerate CRLF in last line */ |
34 sz -= 1; | 34 sz -= 1; |
35 | 35 |
36 hline = PyBytes_FromStringAndSize(l, sz-1); | 36 hline = PyBytes_FromStringAndSize(l, sz-1); |
37 if (!hline) { | 37 if (!hline) { |
38 return NULL; | 38 return; |
39 } | 39 } |
40 | 40 |
41 if (c == ' ' || c == '+') { | 41 if (c == ' ' || c == '+') { |
42 PyObject *rline = PyBytes_FromStringAndSize(l + 1, sz - 2); | 42 PyObject *rline = PyBytes_FromStringAndSize(l + 1, sz - 2); |
43 PyList_SetItem(b, blen-1, rline); | 43 PyList_SetItem(b, blen-1, rline); |