Remove dead code
Don't pass NULL to memcpy

This was benign as NULL ptr implied 0 length.