summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1996-10-30 21:17:39 +0000
committerMarc G. Fournier <scrappy@hub.org>1996-10-30 21:17:39 +0000
commitfa6429d42c1dd4d056d966cc40dca558661adb9b (patch)
tree8eb89b0123b9a54efe4b3175c0a43d582d4b3ddd
parent025709640c48fa5906fa90dcf09f4ae711703ccb (diff)
downloadpostgresql-fa6429d42c1dd4d056d966cc40dca558661adb9b.tar.gz
Fix the ordering of variables in the memset() call
Pointed out by: wieck@sapserv.debis.de
-rw-r--r--src/backend/tcop/postgres.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/backend/tcop/postgres.c b/src/backend/tcop/postgres.c
index 5e3cfcb15b..5af1d36224 100644
--- a/src/backend/tcop/postgres.c
+++ b/src/backend/tcop/postgres.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.4.2.1 1996/08/19 13:36:43 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.4.2.2 1996/10/30 21:17:39 scrappy Exp $
*
* NOTES
* this is the "main" module of the postgres backend and
@@ -1223,7 +1223,7 @@ PostgresMain(int argc, char *argv[])
*/
if (IsUnderPostmaster == false) {
puts("\nPOSTGRES backend interactive interface");
- puts("$Revision: 1.4.2.1 $ $Date: 1996/08/19 13:36:43 $");
+ puts("$Revision: 1.4.2.2 $ $Date: 1996/10/30 21:17:39 $");
}
/* ----------------
@@ -1253,7 +1253,7 @@ PostgresMain(int argc, char *argv[])
if (FD_ISSET(serverSock, &rmask)) {
/* new connection pending on our well-known port's socket */
newFE = (FrontEnd*) malloc (sizeof(FrontEnd));
- memset(newFE, sizeof(FrontEnd),0);
+ memset(newFE, 0, sizeof(FrontEnd));
newFE->fn_connected = false;
newFE->fn_done = false;
newPort = &(newFE->fn_port);