Thread: pgsql: Avoid memcpy() with same source and destination address.

pgsql: Avoid memcpy() with same source and destination address.

From
Heikki Linnakangas
Date:
Avoid memcpy() with same source and destination address.

The behavior of that is undefined, although unlikely to lead to problems in
practice.

Found by running regression tests with Valgrind.

Branch
------
REL9_2_STABLE

Details
-------
http://git.postgresql.org/pg/commitdiff/4afc3f0faa3b1f86c23dabe716c3324962543fa6

Modified Files
--------------
src/backend/tsearch/dict_ispell.c |    9 ++++-----
src/backend/utils/adt/tsvector.c  |    3 ++-
2 files changed, 6 insertions(+), 6 deletions(-)