[gimp] app: add missing NULL check in action_search_match_keyword()



commit e897abd1bf35fe0629cb771980cfda0414c4add3
Author: Ell <ell_se yahoo com>
Date:   Mon May 16 12:19:52 2016 +0000

    app: add missing NULL check in action_search_match_keyword()

 app/dialogs/action-search-dialog.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/app/dialogs/action-search-dialog.c b/app/dialogs/action-search-dialog.c
index e68d9d3..b4b5177 100644
--- a/app/dialogs/action-search-dialog.c
+++ b/app/dialogs/action-search-dialog.c
@@ -268,7 +268,7 @@ one_matched:
         }
     }
 
-  if (! matched && g_utf8_strlen (key_tokens[0], -1) > 2 &&
+  if (! matched && key_tokens[0] && g_utf8_strlen (key_tokens[0], -1) > 2 &&
       gtk_action_get_tooltip (action) != NULL)
     {
       gchar    **tooltip_tokens;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]