diff options
| author | Howard Butler <howard@hobu.co> | 2015-02-16 17:49:22 +0000 |
|---|---|---|
| committer | Howard Butler <howard@hobu.co> | 2015-02-16 17:49:22 +0000 |
| commit | 9bd11221d7b948d9e4487e0e6634f541d619e927 (patch) | |
| tree | e55729e7a302b04ef0b80276d45a6e2453b7f317 /src | |
| parent | b6de325e4fd575cfa3ad7ef9aad94a9e0d276933 (diff) | |
| download | PROJ-9bd11221d7b948d9e4487e0e6634f541d619e927.tar.gz PROJ-9bd11221d7b948d9e4487e0e6634f541d619e927.zip | |
apply patch for #237 to fix initialization ordering around setlocale
git-svn-id: http://svn.osgeo.org/metacrs/proj/trunk@2604 4e78687f-474d-0410-85f9-8d5e500ac6b2
Diffstat (limited to 'src')
| -rw-r--r-- | src/pj_init.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pj_init.c b/src/pj_init.c index 9d9c2265..bea4f86c 100644 --- a/src/pj_init.c +++ b/src/pj_init.c @@ -405,8 +405,8 @@ pj_init_ctx(projCtx ctx, int argc, char **argv) { old_locale = setlocale(LC_NUMERIC, NULL); if (old_locale != NULL) { if (strcmp(old_locale,"C") != 0) { - setlocale(LC_NUMERIC,"C"); old_locale = strdup(old_locale); + setlocale(LC_NUMERIC,"C"); }else old_locale = NULL; } |
