From: Bruce Momjian Date: Thu, 26 Sep 2002 05:18:30 +0000 (+0000) Subject: This patch removes a use of uninitialized memory in lmgr/lock.c, by X-Git-Tag: REL7_3~388 X-Git-Url: http://git.postgresql.org/gitweb/static/gitweb.js?a=commitdiff_plain;h=5ad4faf13ac0d0fed39ee15915839ec6215776a2;p=users%2Fhanada%2Fpostgres.git This patch removes a use of uninitialized memory in lmgr/lock.c, by adding a missing sprintf(). Neil Conway --- 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);