From 76d77a43ec9ea9ad1e530cb35aa97567c927e5bc Mon Sep 17 00:00:00 2001 From: Scoopta Date: Wed, 28 Aug 2019 21:15:29 -0700 Subject: [PATCH] If the filter property on the entry is NULL the entry is now hidden instead of causing a crash --- src/wofi.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/wofi.c b/src/wofi.c index 7ef2863..b9be0a1 100644 --- a/src/wofi.c +++ b/src/wofi.c @@ -451,6 +451,9 @@ static gboolean do_filter(GtkListBoxRow* row, gpointer data) { if(filter == NULL || strcmp(filter, "") == 0) { return TRUE; } + if(text == NULL) { + return FALSE; + } if(strcasestr(text, filter) != NULL) { return TRUE; }