Bug #1094

if statement condition in gmt_getdatapath() in gmt_io.c always satisfied?

Added by Masakazu 10 days ago. Updated 9 days ago.

Status:In ProgressStart date:2017-05-12
Priority:NormalDue date:
Assignee:-% Done:


Target version:-
Affected version:5.x-svn Platform:


Dear GMT developers,

When I looked into gmt_getdatapath() in gmt_io.c, I found that the following condition in the if-statement around source:trunk/src/gmt_io.c@18200#L4456 seems to be always satisfied, because there is ", 99" in it.

#ifdef HAVE_GDAL
                if (gmtlib_check_url_name ((char *)stem), 99)
                        return ((char *)stem);                        /* With GDAL all the /vsi-stuff is given existence credit */

I would appreciate if you could review the part.

Thank you,


#1 Updated by Joaquim 9 days ago

  • Status changed from New to In Progress

Strange, I don't get it what might have been the intention of that 99 but it's there since that code chunk was introduced in r13744 to fix issue #649

Also available in: Atom PDF