From 5ad4faf13ac0d0fed39ee15915839ec6215776a2 Mon Sep 17 00:00:00 2001 From: Bruce Momjian Date: Thu, 26 Sep 2002 05:18:30 +0000 Subject: [PATCH] This patch removes a use of uninitialized memory in lmgr/lock.c, by adding a missing sprintf(). Neil Conway --- src/backend/storage/lmgr/lock.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/backend/storage/lmgr/lock.c b/src/backend/storage/lmgr/lock.c index 03d16d60ae..3a2602777b 100644 --- a/src/backend/storage/lmgr/lock.c +++ b/src/backend/storage/lmgr/lock.c @@ -8,7 +8,7 @@ * * * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.115 2002/09/04 20:31:25 momjian Exp $ + * $Header: /cvsroot/pgsql/src/backend/storage/lmgr/lock.c,v 1.116 2002/09/26 05:18:30 momjian Exp $ * * NOTES * Outside modules can create a lock table and acquire/release @@ -256,6 +256,7 @@ LockMethodTableInit(char *tabName, shmemName = (char *) palloc(strlen(tabName) + 32); /* each lock table has a non-shared, permanent header */ + sprintf(shmemName, "%s (lock method table)", tabName); lockMethodTable = (LOCKMETHODTABLE *) ShmemInitStruct(shmemName, sizeof(LOCKMETHODTABLE), &found); -- 2.40.0