mirror of
https://github.com/kovidgoyal/kitty.git
synced 2026-06-26 19:01:27 +00:00
Merge branch 'check_for_null' of https://github.com/Luflosi/kitty
This commit is contained in:
commit
bf2c50b58b
1 changed files with 1 additions and 0 deletions
|
|
@ -204,6 +204,7 @@ match(PyObject *self, PyObject *args) {
|
|||
opts.delimiter_sz = copy_unicode_object(delimiter, opts.delimiter, arraysz(opts.delimiter));
|
||||
size_t num_lines = PyList_GET_SIZE(lines);
|
||||
char **clines = malloc(sizeof(char*) * num_lines);
|
||||
if (!clines) { return PyErr_NoMemory(); }
|
||||
size_t *sizes = malloc(sizeof(size_t) * num_lines);
|
||||
if (!sizes) { return PyErr_NoMemory(); }
|
||||
for (size_t i = 0; i < num_lines; i++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue