From: Martin S. <mar...@us...> - 2008-04-15 22:24:41
|
Update of /cvsroot/navit/navit/src In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv18934 Modified Files: navigation.c Log Message: Fix:Core:Prevent Segfault when activating navigation map Index: navigation.c =================================================================== RCS file: /cvsroot/navit/navit/src/navigation.c,v retrieving revision 1.39 retrieving revision 1.40 diff -C2 -d -r1.39 -r1.40 *** navigation.c 31 Mar 2008 16:40:21 -0000 1.39 --- navigation.c 15 Apr 2008 22:24:43 -0000 1.40 *************** *** 754,757 **** --- 754,763 ---- static int + navigation_map_item_coord_get(void *priv_data, struct coord *c, int count) + { + return 0; + } + + static int navigation_map_item_attr_get(void *priv_data, enum attr_type attr_type, struct attr *attr) { *************** *** 785,789 **** static struct item_methods navigation_map_item_methods = { NULL, ! NULL, NULL, navigation_map_item_attr_get, --- 791,795 ---- static struct item_methods navigation_map_item_methods = { NULL, ! navigation_map_item_coord_get, NULL, navigation_map_item_attr_get, |