mirror of
https://github.com/postgres/postgres.git
synced 2025-06-26 12:21:12 +03:00
In our source code, make a copy of getopt's 'optarg' string arguments,
rather than just storing a pointer.
This commit is contained in:
@ -241,7 +241,7 @@ AuxiliaryProcessMain(int argc, char *argv[])
|
||||
SetConfigOption("shared_buffers", optarg, PGC_POSTMASTER, PGC_S_ARGV);
|
||||
break;
|
||||
case 'D':
|
||||
userDoption = optarg;
|
||||
userDoption = strdup(optarg);
|
||||
break;
|
||||
case 'd':
|
||||
{
|
||||
|
Reference in New Issue
Block a user