From f3ef60d46f669f2cb779e922c54faafee1f97a6a Mon Sep 17 00:00:00 2001 From: tegzed Date: Sun, 11 Dec 2011 14:24:07 +0000 Subject: [PATCH] Fix:gui/internal:added NULL check to avoid crash in street search dialog. Fixes ticket #973 git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4855 ffa7fe5e-494d-0410-b361-a75ebd5db220 --- navit/navit/gui/internal/gui_internal.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/navit/navit/gui/internal/gui_internal.c b/navit/navit/gui/internal/gui_internal.c index 920a802..71d8196 100644 --- a/navit/navit/gui/internal/gui_internal.c +++ b/navit/navit/gui/internal/gui_internal.c @@ -3820,7 +3820,7 @@ gui_internal_search_idle(struct gui_priv *this, char *wm_name, struct widget *se if(!partial) partial=wc; - } else { + } else if(name) { if(!wi) dbg(0,"search text widget is NULL\n"); if(wi && strlen(name)==strlen(wi->text)) { -- 2.7.4