From cf5c8cd32ebf39f7ff24c426ac00e75a7ae34da8 Mon Sep 17 00:00:00 2001 From: Frank Warmerdam Date: Fri, 11 Jun 2010 03:26:04 +0000 Subject: roll projCtx through various other low level functions git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@1856 4e78687f-474d-0410-85f9-8d5e500ac6b2 --- src/pj_open_lib.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/pj_open_lib.c') diff --git a/src/pj_open_lib.c b/src/pj_open_lib.c index b15cbdf6..22c180a8 100644 --- a/src/pj_open_lib.c +++ b/src/pj_open_lib.c @@ -166,6 +166,9 @@ pj_open_lib(projCtx ctx, char *name, char *mode) { name, sysname, fid == NULL ? "failed" : "succeeded" ); + if( ctx->last_errno == 0 && errno != 0 ) + pj_ctx_set_errno( ctx, errno ); + return(fid); #else return NULL; -- cgit v1.2.3