diff options
| author | Frank Warmerdam <warmerdam@pobox.com> | 2005-11-01 05:56:13 +0000 |
|---|---|---|
| committer | Frank Warmerdam <warmerdam@pobox.com> | 2005-11-01 05:56:13 +0000 |
| commit | ee378510c042b0e389abf7f8a3841626779e633f (patch) | |
| tree | 30f8ee84153845608eecee0acc80cfae35f9b6d1 | |
| parent | 8e63fa82a98c355cb5a6a87e7838a7cd281909b3 (diff) | |
| download | PROJ-ee378510c042b0e389abf7f8a3841626779e633f.tar.gz PROJ-ee378510c042b0e389abf7f8a3841626779e633f.zip | |
improved error handling if gridcount is zero
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1311 4e78687f-474d-0410-85f9-8d5e500ac6b2
| -rw-r--r-- | src/pj_gridlist.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/pj_gridlist.c b/src/pj_gridlist.c index b3820633..f30d2c55 100644 --- a/src/pj_gridlist.c +++ b/src/pj_gridlist.c @@ -29,6 +29,9 @@ ****************************************************************************** * * $Log$ + * Revision 1.4 2005/11/01 05:56:13 fwarmerdam + * improved error handling if gridcount is zero + * * Revision 1.3 2003/03/18 16:26:58 warmerda * clear error if missing file is not required * @@ -189,6 +192,9 @@ PJ_GRIDINFO **pj_gridlist_from_nadgrids( const char *nadgrids, int *grid_count) && strcmp(nadgrids,last_nadgrids) == 0 ) { *grid_count = last_nadgrids_count; + if( *grid_count == 0 ) + pj_errno = -38; + return last_nadgrids_list; } |
