Show More
@@ -303,6 +303,8 b' static PyObject *blocks(PyObject *self, ' | |||
|
303 | 303 | struct hunk l, *h; |
|
304 | 304 | int an, bn, count, pos = 0; |
|
305 | 305 | |
|
306 | l.next = NULL; | |
|
307 | ||
|
306 | 308 | if (!PyArg_ParseTuple(args, "SS:bdiff", &sa, &sb)) |
|
307 | 309 | return NULL; |
|
308 | 310 | |
@@ -312,7 +314,6 b' static PyObject *blocks(PyObject *self, ' | |||
|
312 | 314 | if (!a || !b) |
|
313 | 315 | goto nomem; |
|
314 | 316 | |
|
315 | l.next = NULL; | |
|
316 | 317 | count = diff(a, an, b, bn, &l); |
|
317 | 318 | if (count < 0) |
|
318 | 319 | goto nomem; |
@@ -344,6 +345,8 b' static PyObject *bdiff(PyObject *self, P' | |||
|
344 | 345 | Py_ssize_t len = 0, la, lb; |
|
345 | 346 | PyThreadState *_save; |
|
346 | 347 | |
|
348 | l.next = NULL; | |
|
349 | ||
|
347 | 350 | if (!PyArg_ParseTuple(args, "s#s#:bdiff", &sa, &la, &sb, &lb)) |
|
348 | 351 | return NULL; |
|
349 | 352 | |
@@ -358,7 +361,6 b' static PyObject *bdiff(PyObject *self, P' | |||
|
358 | 361 | if (!al || !bl) |
|
359 | 362 | goto nomem; |
|
360 | 363 | |
|
361 | l.next = NULL; | |
|
362 | 364 | count = diff(al, an, bl, bn, &l); |
|
363 | 365 | if (count < 0) |
|
364 | 366 | goto nomem; |
General Comments 0
You need to be logged in to leave comments.
Login now