mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-23 08:32:42 +00:00
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:
parent
27171cdb3c
commit
852d0b763e
|
@ -176,7 +176,7 @@ main (int argc, char **argv)
|
|||
break;
|
||||
|
||||
case 'W':
|
||||
config->encoding = pgis_optarg;
|
||||
config->encoding = strdup(pgis_optarg);
|
||||
break;
|
||||
|
||||
case 'N':
|
||||
|
|
Loading…
Reference in a new issue