diff options
Diffstat (limited to 'widgets/table/e-table-extras.c')
-rw-r--r-- | widgets/table/e-table-extras.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/widgets/table/e-table-extras.c b/widgets/table/e-table-extras.c index 9f80557901..e9a18b4f8e 100644 --- a/widgets/table/e-table-extras.c +++ b/widgets/table/e-table-extras.c @@ -102,7 +102,11 @@ e_strint_compare(gconstpointer data1, gconstpointer data2) static gboolean e_string_search(gconstpointer haystack, const char *needle) { - int length = g_utf8_strlen (needle, -1); + int length; + if (haystack == NULL) + return FALSE; + + length = g_utf8_strlen (needle, -1); if (g_utf8_strncasecmp (haystack, needle, length) == 0) return TRUE; else |