git.postgresql.org Git - postgresql.git/commit

git projects / postgresql.git / commit
? search:
summary | shortlog | log | commit | commitdiff | tree
(parent: e21db14) | patch
Remove useless pg_strdup() operations.
Sun, 4 Sep 2016 16:33:58 +0000 (12:33 -0400)
Sun, 4 Sep 2016 16:33:58 +0000 (12:33 -0400)
commit a2d75b67bccd24d17e328360080e4877d23bc369
Remove useless pg_strdup() operations.

split_to_stringlist() doesn't modify its first argument nor expect it
to remain valid after exit, so there's no need to duplicate the optarg
string at the call sites. Per Coverity. (This has been wrong all along,
but commit 052cc223d changed the useless calls from "strdup" to
"pg_strdup", which apparently made Coverity think it's a new bug.
It's not, but it's also not worth back-patching.)
src/test/regress/pg_regress.c diff | blob | blame | history
This is the main PostgreSQL git repository.
RSS Atom

AltStyle によって変換されたページ (->オリジナル) /