if statement condition in gmt_getdatapath() in gmt_io.c always satisfied?
|Target version:||Candidate for next bugfix release|
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.
#2 Updated by Paul about 3 years ago
- Status changed from In Progress to Resolved
- Assignee set to Paul
- Target version set to Candidate for next bugfix release
- % Done changed from 0 to 100
Fixed in r18274. An odd thing. Most likely I was trying to type ", 99" into another file but the mouse focus was on this file, and it just happen to land inside that if-test and not cause a syntax error (but a semantic error). Thanks for catching it!