pgsql: Avoid unnecessary copying of a string in pg_restore.c - Mailing list pgsql-committers

From Andrew Dunstan
Subject pgsql: Avoid unnecessary copying of a string in pg_restore.c
Date
Msg-id E1u1Q7R-002xyY-1Q@gemulon.postgresql.org
Whole thread Raw
List pgsql-committers
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.

Branch
------
master

Details
-------
https://git.postgresql.org/pg/commitdiff/5e1915439085014140314979c4dd5e23bd677cac

Modified Files
--------------
src/bin/pg_dump/pg_restore.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)


pgsql-committers by date:

Previous
From: Andrew Dunstan
Date:
Subject: pgsql: Fix a couple of memory leaks in pg_restore.c
Next
From: Tom Lane
Date:
Subject: pgsql: Use "(void)" to mark pgstat_lock_entry(..., false) calls.