avoid potential read of uninitialized memory (2nd copy)