forked from enlightenment/terminology
termiointernals: fix possible NULL-dereference CID1399745
This commit is contained in:
parent
6c55ecf1a1
commit
8076e4673f
|
@ -253,7 +253,7 @@ _sel_codepoints_get(const Termio *sd,
|
|||
/* Selection outside of current line of "text" */
|
||||
TRY(_codepoint_buf_append(buf, ' '));
|
||||
}
|
||||
else if (cells[x].codepoint == 0)
|
||||
else if (!cells || cells[x].codepoint == 0)
|
||||
{
|
||||
TRY(_codepoint_buf_append(buf, ' '));
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue