[GRASS-dev] G__create_alt_search_path() bug?

Martin Landa landa.martin at gmail.com
Mon Mar 24 18:04:10 EDT 2008


Hi,

I found strange construction in G__create_alt_search_path()

114 	    return 0; /* ??? */
115 	
116 	    get_list_of_mapsets();

see

http://trac.osgeo.org/grass/browser/grass/trunk/lib/gis/mapset_nme.c?rev=30718#L107

I guess that get_list_of_mapsets() should be called before return.
This function is used in few GRASS modules.

imagery/i.points/target.c:      G__create_alt_search_path();
imagery/i.ortho.photo/photo.elev/main.c:        G__create_alt_search_path();
imagery/i.ortho.photo/photo.2target/target.c:   G__create_alt_search_path();
imagery/i.ortho.photo/photo.2image/target.c:    G__create_alt_search_path();
imagery/i.vpoints/target.c:     G__create_alt_search_path();
...

Martin

-- 
Martin Landa <landa.martin gmail.com> * http://gama.fsv.cvut.cz/~landa *


More information about the grass-dev mailing list