Skip to content

fix(grid): restore spacegroup member initialization#427

Open
CV-GPhL wants to merge 1 commit into
project-gemmi:masterfrom
CV-GPhL:fix/restore-member-initializers
Open

fix(grid): restore spacegroup member initialization#427
CV-GPhL wants to merge 1 commit into
project-gemmi:masterfrom
CV-GPhL:fix/restore-member-initializers

Conversation

@CV-GPhL
Copy link
Copy Markdown
Contributor

@CV-GPhL CV-GPhL commented May 22, 2026

Restores the initialization of GridMeta::spacegroup = nullptr that was
inadvertently removed during the Doxygen documentation PR series (#413-#422).

This uninitialized pointer member could cause undefined behavior if accessed
before being explicitly set.

Related to the partial fix in commit 2c1b0c5, which addressed the same issue
in metadata.hpp and small.hpp.

Restores the initialization of GridMeta::spacegroup = nullptr that was
inadvertently removed in PR project-gemmi#418. This fixes undefined behavior when the
space group pointer is accessed before being explicitly set.

Part of comprehensive fix for initialization removals introduced in
Doxygen documentation PR series (project-gemmi#413-project-gemmi#422).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant