Skip to content

Commit 854e1a1

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 4c4e838 commit 854e1a1

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
@@ -20,7 +20,7 @@ pg_tde_kmip_set_by_name(BIO *bio, char *key_name, const unsigned char *key, unsi
2020
int32 mask = KMIP_CRYPTOMASK_ENCRYPT | KMIP_CRYPTOMASK_DECRYPT;
2121
Name ts;
2222
TextString ts2;
23-
TemplateAttribute ta = {};
23+
TemplateAttribute ta = {0};
2424
char *idp;
2525
int id_size;
2626

contrib/pg_tde/src/pg_tde_event_capture.c

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

52-
static FullTransactionId ddlEventStackTid = {};
52+
static FullTransactionId ddlEventStackTid = {0};
5353
static List *ddlEventStack = NIL;
5454

5555
static Oid get_db_oid(const char *name);

0 commit comments

Comments
 (0)