diff options
author | bptato <nincsnevem662@gmail.com> | 2025-01-11 23:47:38 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2025-01-12 01:15:47 +0100 |
commit | 2db84e9ea2cde323516586ec1478c953cc25f6cc (patch) | |
tree | f3bf6e5650233cf2057f63218c1c248a10f5e815 /adapter/protocol/gemini.nim | |
parent | 60b18545ceff4310406f43418ad8d81d8ddc24a1 (diff) | |
download | chawan-2db84e9ea2cde323516586ec1478c953cc25f6cc.tar.gz |
Fix some strict defs
Diffstat (limited to 'adapter/protocol/gemini.nim')
-rw-r--r-- | adapter/protocol/gemini.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/adapter/protocol/gemini.nim b/adapter/protocol/gemini.nim index 7478c6dd..45af6a81 100644 --- a/adapter/protocol/gemini.nim +++ b/adapter/protocol/gemini.nim @@ -134,7 +134,7 @@ proc checkCert(os: PosixStream; ssl: ptr SSL; host, port: string; let pkey = X509_get0_pubkey(cert) if pkey == nil: sdie("failed to decode public key") - var pubkeyBuf: array[16384, uint8] + var pubkeyBuf {.noinit.}: array[16384, uint8] let len = i2d_PUBKEY(pkey, nil); if len * 3 > pubkeyBuf.len: os.die("InternalError", "pubkey too long") |