BUG: odr: avoid memcpy to the same address

Silences a Valgrind warning.