[PATCH 0/2] Avoid memcpy with NULL argument