8000 Fix the ordering of variables in the memset() call · home201448/postgres@fa6429d · GitHub
[go: up one dir, main page]

Skip to content

Commit fa6429d

Browse files
committed
Fix the ordering of variables in the memset() call
Pointed out by: wieck@sapserv.debis.de
1 parent 0257096 commit fa6429d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/backend/tcop/postgres.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
*
88
*
99
* IDENTIFICATION
10-
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.4.2.1 1996/08/19 13:36:43 scrappy Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.4.2.2 1996/10/30 21:17:39 scrappy Exp $
1111
*
1212
* NOTES
1313
* this is the "main" module of the postgres backend and
@@ -1223,7 +1223,7 @@ PostgresMain(int argc, char *argv[])
12231223
*/
12241224
if (IsUnderPostmaster == false) {
12251225
puts("\nPOSTGRES backend interactive interface");
1226-
puts("$Revision: 1.4.2.1 $ $Date: 1996/08/19 13:36:43 $");
1226+
puts("$Revision: 1.4.2.2 $ $Date: 1996/10/30 21:17:39 $");
12271227
}
12281228

12291229
/* ----------------
@@ -1253,7 +1253,7 @@ PostgresMain(int argc, char *argv[])
12531253
if (FD_ISSET(serverSock, &rmask)) {
12541254
/* new connection pending on our well-known port's socket */
12551255
newFE = (FrontEnd*) malloc (sizeof(FrontEnd));
1256-
memset(newFE, sizeof(FrontEnd),0);
1256+
memset(newFE, 0, sizeof(FrontEnd));
12571257
newFE->fn_connected = false;
12581258
newFE->fn_done = false;
12591259
newPort = &(newFE->fn_port);

0 commit comments

Comments
 (0)
0