Fix comment on clearing padding.
authorHeikki Linnakangas <[email protected]>
Tue, 27 Jun 2023 07:11:31 +0000 (10:11 +0300)
committerHeikki Linnakangas <[email protected]>
Tue, 27 Jun 2023 07:15:26 +0000 (10:15 +0300)
Author: Japin Li
Discussion: https://www.postgresql.org/message-id/MEYP282MB16696317B5DA7D0D92306149B627A@MEYP282MB1669.AUSP282.PROD.OUTLOOK.COM

contrib/pg_stat_statements/pg_stat_statements.c

index 5fff558e4d93ee99b5f341d73c2ecdad62fe598c..74dd35924e1d7824a7d5b7acc16995b5dd9821b1 100644 (file)
@@ -1247,7 +1247,7 @@ pgss_store(const char *query, uint64 queryId,
 
    /* Set up key for hashtable search */
 
-   /* memset() is required when pgssHashKey is without padding only */
+   /* clear padding */
    memset(&key, 0, sizeof(pgssHashKey));
 
    key.userid = GetUserId();