Skip to content

Commit 5a14a5e

Browse files
ordexcron2
authored andcommitted
Avoid warning about missing braces when initialising key struct
This avoids the warning from gcc about initialising the key2 struct. Signed-off-by: Antonio Quartulli <[email protected]> Acked-by: Gert Doering <[email protected]> Message-Id: <[email protected]> URL: https://www.mail-archive.com/search?l=mid&[email protected] Signed-off-by: Gert Doering <[email protected]>
1 parent 549fbd8 commit 5a14a5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/openvpn/tls_crypt.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -348,7 +348,7 @@ tls_crypt_v2_init_client_key(struct key_ctx_bi *key, struct key2 *original_key,
348348
msg(M_FATAL, "ERROR: invalid tls-crypt-v2 client key format");
349349
}
350350

351-
struct key2 key2 = { .n = 2, .keys = { 0 } };
351+
struct key2 key2 = { .n = 2 };
352352
if (!buf_read(&client_key, &key2.keys, sizeof(key2.keys)))
353353
{
354354
msg(M_FATAL, "ERROR: not enough data in tls-crypt-v2 client key");

0 commit comments

Comments
 (0)