CVSROOT: /cvsroot
Module name: pgsql-server
Changes by: neilc@svr1.postgresql.org 04/02/03 21:11:47
Modified files:
src/backend/utils/adt: numeric.c
Log message:
Use memmove() rather than memcpy() in set_var_from_var(). If this function
is asked to assign a variable to itself, it will result in doing a
memcpy() on an entirely-overlapping memory range, which results in
undefined behavior according to ANSI C. That said, it is unlikely to
actually do anything bad on any sane libc, but this keeps valgrind quiet.