diff options
author | Neil Conway <neilc@samurai.com> | 2004-02-04 01:11:47 +0000 |
---|---|---|
committer | Neil Conway <neilc@samurai.com> | 2004-02-04 01:11:47 +0000 |
commit | e66fcce67272f5aece55e834b34ed318b67f921b (patch) | |
tree | 911e8697bcdb32e806ec1d96d6b7b6a714bd69c4 /src/backend/access/gist/gist.c | |
parent | d3917186b26bb95641b6c6189c5c23989c41f69d (diff) | |
download | postgresql-e66fcce67272f5aece55e834b34ed318b67f921b.tar.gz |
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.
Diffstat (limited to 'src/backend/access/gist/gist.c')
0 files changed, 0 insertions, 0 deletions