diff options
| author | Frank Warmerdam <warmerdam@pobox.com> | 2010-10-04 02:13:14 +0000 |
|---|---|---|
| committer | Frank Warmerdam <warmerdam@pobox.com> | 2010-10-04 02:13:14 +0000 |
| commit | ab034ef9b3638a675e11683db071a8a1a3162903 (patch) | |
| tree | 1a90b4c135d074b3ee4ef0e0461a24d641473a4c /src | |
| parent | ec9c4401eea825e6488feeb469b4a4a51c98b170 (diff) | |
| download | PROJ-ab034ef9b3638a675e11683db071a8a1a3162903.tar.gz PROJ-ab034ef9b3638a675e11683db071a8a1a3162903.zip | |
ensure any old error is cleared at the start
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1914 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src')
| -rw-r--r-- | src/pj_ell_set.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/pj_ell_set.c b/src/pj_ell_set.c index 6ef537e1..c0d4adcb 100644 --- a/src/pj_ell_set.c +++ b/src/pj_ell_set.c @@ -13,7 +13,10 @@ pj_ell_set(projCtx ctx, paralist *pl, double *a, double *es) { char *name; paralist *start = 0, *curr; - /* check for varying forms of ellipsoid input */ + /* clear any previous error */ + pj_ctx_set_errno(ctx,0); + + /* check for varying forms of ellipsoid input */ *a = *es = 0.; /* R takes precedence */ if (pj_param(NULL, pl, "tR").i) |
