diff options
| author | Frank Warmerdam <warmerdam@pobox.com> | 2013-06-25 07:54:19 +0000 |
|---|---|---|
| committer | Frank Warmerdam <warmerdam@pobox.com> | 2013-06-25 07:54:19 +0000 |
| commit | ddf0a021559b9dec913953701373ff5c8f69794f (patch) | |
| tree | c4233a1b7d8cf573f553c7d76ae35dff202ff795 | |
| parent | 46759c07ca73c8e39fe963f7cb7f670ee9ed75b2 (diff) | |
| download | PROJ-ddf0a021559b9dec913953701373ff5c8f69794f.tar.gz PROJ-ddf0a021559b9dec913953701373ff5c8f69794f.zip | |
fix variable declaration order to be C (and msvc) legal
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2361 4e78687f-474d-0410-85f9-8d5e500ac6b2
| -rw-r--r-- | src/pj_fileapi.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pj_fileapi.c b/src/pj_fileapi.c index d0d2a442..c0b33693 100644 --- a/src/pj_fileapi.c +++ b/src/pj_fileapi.c @@ -70,6 +70,7 @@ projFileAPI *pj_get_default_fileapi() static PAFile pj_stdio_fopen(projCtx ctx, const char *filename, const char *access) { + stdio_pafile *pafile; FILE *fp; fp = fopen(filename, access); @@ -78,7 +79,7 @@ static PAFile pj_stdio_fopen(projCtx ctx, const char *filename, return NULL; } - stdio_pafile *pafile = (stdio_pafile *) malloc(sizeof(stdio_pafile)); + pafile = (stdio_pafile *) malloc(sizeof(stdio_pafile)); pafile->fp = fp; pafile->ctx = ctx; return (PAFile) pafile; |
