mirror of
https://github.com/postgres/postgres.git
synced 2026-04-15 22:10:45 -04:00
Fix memory allocation bug in pgbench.
patches submitted by ITAGAKI Takahiro.
This commit is contained in:
parent
6e38e34d64
commit
68dfef040b
1 changed files with 2 additions and 2 deletions
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.51 2006/07/28 22:58:26 ishii Exp $
|
||||
* $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.52 2006/07/31 05:15:14 ishii Exp $
|
||||
*
|
||||
* pgbench: a simple benchmark program for PostgreSQL
|
||||
* written by Tatsuo Ishii
|
||||
|
|
@ -1344,7 +1344,7 @@ main(int argc, char **argv)
|
|||
exit(1);
|
||||
}
|
||||
|
||||
memset(state + sizeof(*state), 0, sizeof(*state) * (nclients - 1));
|
||||
memset(state + 1, 0, sizeof(*state) * (nclients - 1));
|
||||
|
||||
for (i = 1; i < nclients; i++)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue