Skip to content
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

Removes uninitialized variable in function __CFMessagePortCreateRemote in CFMessagePort #2811

Merged
merged 2 commits into from
Aug 25, 2020

Conversation

valeriyvan
Copy link
Contributor

No description provided.

@valeriyvan valeriyvan changed the title Removes uninitialized variable in __CFMessagePortCreateRemote Removes uninitialized variable in function __CFMessagePortCreateRemote in CFMessagePort Jun 4, 2020
@valeriyvan
Copy link
Contributor Author

@spevans could you be so kind to review this PR?

@@ -443,8 +443,7 @@ static CFMessagePortRef __CFMessagePortCreateRemote(CFAllocatorRef allocator, CF
CFMachPortContext ctx;
uint8_t *utfname = NULL;
CFIndex size;
mach_port_t port;
kern_return_t ret;
mach_port_t port = 0;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should probably use MACH_PORT_NULL rather than 0.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed

@millenomi
Copy link
Contributor

I'm going to aggressively move PRs to drafts if they have unaddressed changes. Feel free to move this back to an actual PR when it's ready again.

@millenomi millenomi marked this pull request as draft August 24, 2020 21:32
@valeriyvan valeriyvan marked this pull request as ready for review August 25, 2020 08:58
@millenomi
Copy link
Contributor

@swift-ci please test and merge

@swift-ci swift-ci merged commit 70ac8ed into swiftlang:master Aug 25, 2020
@valeriyvan valeriyvan deleted the CFMessagePort branch August 26, 2020 06:50
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.

3 participants