Fix:search:Fixed a crash while searching and hitting a street without streetname
authorrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 22 Aug 2011 22:49:14 +0000 (22:49 +0000)
committerrikky <rikky@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Mon, 22 Aug 2011 22:49:14 +0000 (22:49 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@4695 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/search.c

index edde303..601e42b 100644 (file)
@@ -1033,7 +1033,7 @@ search_address_housenumber(GList *result_list, struct search_list *sl, GList *ph
 
                while (tmp)
                {
-                       if (tmp != exclude1 && tmp != exclude2 && tmp != exclude3)
+                       if (tmp != exclude1 && tmp != exclude2 && tmp != exclude3 && slr->street)
                        {
                                attr2.type=attr_house_number;
                                attr2.u.str=tmp->data;