Skip to content

linuxcncrsh: Properly return std::nullopt and not a nullptr#4237

Merged
andypugh merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:fix_emcrsh-nullopt
Jul 14, 2026
Merged

linuxcncrsh: Properly return std::nullopt and not a nullptr#4237
andypugh merged 1 commit into
LinuxCNC:masterfrom
BsAtHome:fix_emcrsh-nullopt

Conversation

@BsAtHome

Copy link
Copy Markdown
Contributor

Null return value for std::optional is std::nullopt and not nullptr. This fixes a potential crash.

@andypugh

Copy link
Copy Markdown
Collaborator

Is this bugfixy enough to belong in 2.9?

@BsAtHome

Copy link
Copy Markdown
Contributor Author

No, it is not in 2.9. This bug was introduced when I rewrote linuxcncrsh, which is in master.

@andypugh andypugh merged commit ac6427b into LinuxCNC:master Jul 14, 2026
16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants