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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

net/openssl: correctly assign nil to reference values #19981

Merged
merged 1 commit into from Nov 24, 2023

Conversation

kimshrier
Copy link
Contributor

@kimshrier kimshrier commented Nov 24, 2023

馃[deprecated] Generated by Copilot at 184f407

Fix compilation error in vlib/net/openssl/ssl_connection.c.v by using unsafe { nil } for pointer initialization. This change adapts to a stricter rule of the V compiler that forbids casting 0 to pointers.

馃[deprecated] Generated by Copilot at 184f407

  • Initialize sslctx and ssl fields of SSLConn struct to unsafe { nil } instead of 0 to avoid casting error (link)

@spytheman spytheman merged commit be544d7 into vlang:master Nov 24, 2023
43 checks passed
@kimshrier kimshrier deleted the fix_assign_to_reference branch December 9, 2023 19:19
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.

None yet

3 participants