Show More
@@ -34,6 +34,9 b' static void _fix_newline(PyObject *hunk,' | |||||
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) { | |||
|
38 | return NULL; | |||
|
39 | } | |||
37 |
|
40 | |||
38 | if (c == ' ' || c == '+') { |
|
41 | if (c == ' ' || c == '+') { | |
39 | PyObject *rline = PyBytes_FromStringAndSize(l + 1, sz - 2); |
|
42 | PyObject *rline = PyBytes_FromStringAndSize(l + 1, sz - 2); | |
@@ -194,4 +197,3 b' initdiffhelpers(void)' | |||||
194 | NULL, NULL); |
|
197 | NULL, NULL); | |
195 | } |
|
198 | } | |
196 | #endif |
|
199 | #endif | |
197 |
|
General Comments 0
You need to be logged in to leave comments.
Login now