fix: prevent SIGSEGV on NULL extract in infobox handler
This commit is contained in:
parent
821e670ddd
commit
b9f775fc2d
1 changed files with 1 additions and 1 deletions
|
|
@ -239,7 +239,7 @@ static void *infobox_thread_func(void *arg) {
|
|||
|
||||
data->result = h->fetch_fn((char *)data->query);
|
||||
data->success = (data->result.title != NULL && data->result.extract != NULL &&
|
||||
strlen(data->result.extract) > 10);
|
||||
data->result.extract[0] != '\0');
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue