[gtk/wip/otte/whatever: 2/5] stringfilter: Don't crash if the expression returns ""
- From: Benjamin Otte <otte src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/otte/whatever: 2/5] stringfilter: Don't crash if the expression returns ""
- Date: Sat, 27 Jun 2020 04:40:18 +0000 (UTC)
commit 09279c15b39e41e56ce5fa8c7d1008c5faeaee84
Author: Benjamin Otte <otte redhat com>
Date: Sat Jun 27 06:29:58 2020 +0200
stringfilter: Don't crash if the expression returns ""
gtk/gtkstringfilter.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gtk/gtkstringfilter.c b/gtk/gtkstringfilter.c
index ada86ea401..3fa924e9c3 100644
--- a/gtk/gtkstringfilter.c
+++ b/gtk/gtkstringfilter.c
@@ -110,9 +110,9 @@ gtk_string_filter_match (GtkFilter *filter,
!gtk_expression_evaluate (self->expression, item, &value))
return FALSE;
s = g_value_get_string (&value);
- if (s == NULL)
- return FALSE;
prepared = gtk_string_filter_prepare (self, s);
+ if (prepared == NULL)
+ return FALSE;
switch (self->match_mode)
{
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]