mirror of
https://github.com/postgres/postgres.git
synced 2025-06-17 17:02:08 +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:
@ -171,7 +171,7 @@ main(int argc, char *const argv[])
|
||||
regression_mode = true;
|
||||
break;
|
||||
case 'o':
|
||||
output_filename = optarg;
|
||||
output_filename = strdup(optarg);
|
||||
if (strcmp(output_filename, "-") == 0)
|
||||
yyout = stdout;
|
||||
else
|
||||
|
Reference in New Issue
Block a user