projects
/
postgresql.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6e38e34
)
Fix memory allocation bug in pgbench.
author
Tatsuo Ishii
<ishii@postgresql.org>
Mon, 31 Jul 2006 05:15:14 +0000
(
05:15
+0000)
committer
Tatsuo Ishii
<ishii@postgresql.org>
Mon, 31 Jul 2006 05:15:14 +0000
(
05:15
+0000)
patches submitted by ITAGAKI Takahiro.
contrib/pgbench/pgbench.c
patch
|
blob
|
blame
|
history
diff --git
a/contrib/pgbench/pgbench.c
b/contrib/pgbench/pgbench.c
index 822cb849461ba944f23f5611c87a1b7f4832b5f9..206b3a66ae286a90e7942e0b312a8fd529e0aef4 100644
(file)
--- a/
contrib/pgbench/pgbench.c
+++ b/
contrib/pgbench/pgbench.c
@@
-1,5
+1,5
@@
/*
- * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.5
1 2006/07/28 22:58:26
ishii Exp $
+ * $PostgreSQL: pgsql/contrib/pgbench/pgbench.c,v 1.5
2 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++)
{