mirror of
https://github.com/postgres/postgres.git
synced 2025-07-28 23:42:10 +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:
@ -643,7 +643,7 @@ main(int argc, char **argv)
|
||||
}
|
||||
break;
|
||||
case 't': /* Trigger file */
|
||||
triggerPath = optarg;
|
||||
triggerPath = strdup(optarg);
|
||||
break;
|
||||
case 'w': /* Max wait time */
|
||||
maxwaittime = atoi(optarg);
|
||||
|
Reference in New Issue
Block a user