Ticket #48: test2.patch

File test2.patch, 566 bytes (added by reddog@…, 13 years ago)

mapset_search_new horrible fix

  • src/mapset.c

    old new  
    8989        this->item=item;
    9090        this->search_attr=search_attr;
    9191        this->partial=partial;
    92         this->ms=map_search_new(this->map->data, item, search_attr, partial);
    93         return this;
     92    if (this->map)
     93    {
     94        this->ms=map_search_new(this->map->data, item, search_attr, partial);
     95    }
     96    else
     97    {
     98        printf("Can't search in a NULL mapset!");
     99        exit(-1);
     100    }
     101
     102    return this;
     103
    94104}
    95105
    96106struct item *