Allocate memory for encoding argument, so it can be safely freed later.

Fixes #3608

Patch by Matt Amos <zerebubuth@gmail.com>

git-svn-id: http://svn.osgeo.org/postgis/trunk@15038 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
Sandro Santilli 2016-08-05 14:52:21 +00:00
parent 27171cdb3c
commit 852d0b763e

View file

@ -176,7 +176,7 @@ main (int argc, char **argv)
break; break;
case 'W': case 'W':
config->encoding = pgis_optarg; config->encoding = strdup(pgis_optarg);
break; break;
case 'N': case 'N':