OK, patch attached, fix for QGIS crash.
I know, I should create a new ticket and then make a comment with the
patch attached, right?
Well, if anybody cares, here it is.
Radim
On Thu, May 14, 2009 at 3:31 PM, Hamish <[email protected]> wrote:
>
> Radim wrote:
>> May I get svn write access? My
>> account on osgeo is 'rblazek'.
>
>
> a post to the grass-psc list w.r.t. RFC2 is needed, as described here:
> https://trac.osgeo.org/grass/wiki/HowToContribute#ProcedureforgainingGRASS-SVNwriteaccess
>
> (we all had to do it; you are already listed in trunk/contributors.csv
> as a committer for whatever that means)
>
>
> otherwise, totally fine by me..
> Hamish
>
>
>
>
>
>
Index: lib/gis/mapset_nme.c
===================================================================
--- lib/gis/mapset_nme.c (revision 36903)
+++ lib/gis/mapset_nme.c (working copy)
@@ -140,13 +140,15 @@
char **G_available_mapsets(void)
{
char **mapsets = NULL;
- int alloc = 0;
+ int alloc = 50;
int n = 0;
DIR *dir;
struct dirent *ent;
G_debug(3, "G_available_mapsets");
+ mapsets = G_calloc( alloc, sizeof(char *));
+
dir = opendir(G_location_path());
if (!dir)
return mapsets;
@@ -170,6 +172,7 @@
}
mapsets[n++] = G_store(ent->d_name);
+ mapsets[n] = NULL;
}
closedir(dir);
_______________________________________________
grass-dev mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/grass-dev