Skip to content

Commit 38fd9ca

Browse files
committed
Use the standard syntax for initializing structs to zero
As far as I understand you need at least one element to write a literal which initializes a struct to all zeros. In these particular cases I do not think it matters since static variables are always zero initialized but I prefer being clear.
1 parent 8084e6a commit 38fd9ca

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

contrib/pg_tde/src/keyring/keyring_kmip_impl.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ pg_tde_kmip_set_by_name(BIO *bio, char *key_name, const unsigned char *key, unsi
1919
int32 mask = KMIP_CRYPTOMASK_ENCRYPT | KMIP_CRYPTOMASK_DECRYPT;
2020
Name ts;
2121
TextString ts2;
22-
TemplateAttribute ta = {};
22+
TemplateAttribute ta = {0};
2323
char *idp;
2424
int id_size;
2525

contrib/pg_tde/src/pg_tde_event_capture.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ typedef struct
4747
Oid rebuildSequence;
4848
} TdeDdlEvent;
4949

50-
static FullTransactionId ddlEventStackTid = {};
50+
static FullTransactionId ddlEventStackTid = {0};
5151
static List *ddlEventStack = NIL;
5252

5353
static Oid get_db_oid(const char *name);

0 commit comments

Comments
 (0)