Ticket #48: test1.patch

File test1.patch, 390 bytes (added by reddog@…, 13 years ago)

navit_get_mapset horrible fix

  • src/navit.c

    old new  
    106106struct mapset *
    107107navit_get_mapset(struct navit *this_)
    108108{
    109         return this_->mapsets->data;
     109    if (this_->mapsets)
     110        return this_->mapsets->data;
     111   
     112    printf("Can't get NULL mapset!");
     113    exit(-1);
    110114}
    111115
    112116struct tracking *