1
0
mirror of https://github.com/rkd77/elinks.git synced 2024-12-04 14:46:47 -05:00

[search] Check NULL. Refs #99

This commit is contained in:
Witold Filipczyk 2021-02-28 16:44:17 +01:00
parent acbcfd2eba
commit 89a5f106ef

View File

@ -1370,6 +1370,11 @@ move_search_number(struct session *ses, struct document_view *doc_view, int numb
doc_view->vs->current_search_number = number;
pt = doc_view->document->search_points;
if (!pt) {
return ret;
}
x = pt[number].x;
y = pt[number].y;