Commit 77be893d authored by Tristan Matthews's avatar Tristan Matthews

* #19035: addressbook: check if config is NULL before using

parent 42f38427
......@@ -39,8 +39,9 @@
void
addressbook_search (void (*search_cb)(GList *, gpointer), GtkEntry* entry, AddressBook_Config *addressbook_config)
{
const gint max_results = addressbook_config ? addressbook_config->max_results : 10;
search_async_by_contacts (gtk_entry_get_text(entry),
addressbook_config->max_results,
max_results,
search_cb,
addressbook_config);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment