Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitc037953

Browse files
Fix HTAB name setting in makePackHTAB()
1 parent238c1ef commitc037953

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

‎pg_variables.c

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1247,8 +1247,7 @@ static void
12471247
makePackHTAB(Package*package,boolis_trans)
12481248
{
12491249
HASHCTLctl;
1250-
charkey[NAMEDATALEN],
1251-
hash_name[BUFSIZ];
1250+
charhash_name[BUFSIZ];
12521251

12531252
if (is_trans)
12541253
package->hctxTransact=AllocSetContextCreate(ModuleContext,
@@ -1260,7 +1259,7 @@ makePackHTAB(Package *package, bool is_trans)
12601259
ALLOCSET_DEFAULT_SIZES);
12611260

12621261
snprintf(hash_name,BUFSIZ,"%s variables hash for package \"%s\"",
1263-
is_trans ?"Transactional" :"Regular",key);
1262+
is_trans ?"Transactional" :"Regular",package->transObject.name);
12641263
ctl.keysize=NAMEDATALEN;
12651264
ctl.entrysize=sizeof(Variable);
12661265
ctl.hcxt= (is_trans ?package->hctxTransact :package->hctxRegular);

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp