Fix comment on clearing padding.
authorHeikki Linnakangas
Tue, 27 Jun 2023 07:11:31 +0000 (10:11 +0300)
committerHeikki Linnakangas
Tue, 27 Jun 2023 07:15:14 +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 21bede29fe9e389c4e8954de3bd8b427f5eb7420..518ddfef2ab66f1bde3703fa0776ffe1c1510e67 100644 (file)
@@ -1257,7 +1257,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();