Avoid unnecessary copying of a string in pg_restore.c

Andrew Dunstan <andrew@dunslane.net>

Commit: 5e1915439085014140314979c4dd5e23bd677cac
Author: Andrew Dunstan <andrew@dunslane.net>
Date: 2025-04-06T13:21:09Z
Releases: 18.0
Avoid unnecessary copying of a string in pg_restore.c

Coverity complained about a possible overrun in the copy, but there is
no actual need to copy the string at all.

Files

PathChange+/−
src/bin/pg_dump/pg_restore.c modified +3 −3