Fix:Core:Fix coverity bug #12, Variable m tracked as NULL was passed to a function...
authorhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 16 Jun 2009 14:25:52 +0000 (14:25 +0000)
committerhorwitz <horwitz@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Tue, 16 Jun 2009 14:25:52 +0000 (14:25 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@2329 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/map/poi_geodownload/poi_geodownload.c

index 3332db3..5b698da 100644 (file)
@@ -754,7 +754,7 @@ map_new_poi_geodownload(struct map_methods *meth, struct attr **attrs)
                entry = catalog->pdata[i];
                dbg(1,"object name '%s'\n", entry->object_name);
                if (!strcasecmp(entry->object_name, "_INDEXDATA")) {
-                       if (load_poi_table(m, entry)) {
+                       if (m && load_poi_table(m, entry)) {
                                printf("%s invalid\n", filename);
                                g_free(m);
                                m=NULL;