Skip to content

Replace assignment (=) with comparison (==) in write() check #6554

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

44670
Copy link

@44670 44670 commented May 23, 2025

Motivation

This PR fixes a critical bug in the shared_create function where an assignment operator was used instead of a comparison operator in a conditional statement, causing potential incorrect behavior when creating shared memory segments.

Modifications

Fixed the conditional statement in shared_create function by replacing the assignment operator (=) with proper error checking

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.

1 participant