Skip to content

Commit

Permalink
correctly assign nil to reference values
Browse files Browse the repository at this point in the history
  • Loading branch information
kimshrier committed Nov 24, 2023
1 parent 043ebb8 commit 184f407
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vlib/net/openssl/ssl_connection.c.v
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,8 @@ pub fn new_ssl_conn(config SSLConnectConfig) !&SSLConn {
}
mut conn := &SSLConn{
config: config
sslctx: 0
ssl: 0
sslctx: unsafe { nil }
ssl: unsafe { nil }
handle: 0
}
conn.init() or { return err }
Expand Down

0 comments on commit 184f407

Please sign in to comment.