[GRASS-dev] i.find broken in CVS
Hamish
hamish_nospam at yahoo.com
Tue Jun 27 11:17:43 EDT 2006
On Tue, 27 Jun 2006 15:31:14 +0100 (BST)
Paul Kelly <paul-grass at stjohnspoint.co.uk> wrote:
> Hello Hamish/Brad
> I've fixed this now:
>
> On Tue, 27 Jun 2006, Hamish wrote:
>
> > Hi,
> >
> > a recent change makes i.find segfault.
> >
> [...]
> >
> > it seems to break here:
> > imagery/i.find/main.c line 111, in find()
> >
> > while ((dp = readdir(dfd)) != NULL)
>
> It was actually a bit before that around:
> G__file_name (dir, element, "", mapset);
> if ((dfd = opendir(dir)) == NULL)
> continue;
> With the recent changes, dir was an uninitialised pointer at this
> point but G__file_name() was expecting a buffer into which it could
> copy its result.
thanks, works.
One more problem, it now lists "." and ".." as filenames in the element
list. Obviously not maps..
Hamish
More information about the grass-dev
mailing list