Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit f1c95ed

Browse files
committed
Fix memset() call, variables being passed in wrong order.
Pointed out by: wieck@sapserv.debis.de
1 parent da7f60c commit f1c95ed

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.10 1996/10/13 04:49:57 momjian Exp $
10+
* $Header: /cvsroot/pgsql/src/backend/tcop/postgres.c,v 1.11 1996/10/30 21:18:22 scrappy Exp $
1111
*
1212
* NOTES
1313
* this is the "main" module of the postgres backend and
@@ -1265,7 +1265,7 @@ PostgresMain(int argc, char *argv[])
12651265
*/
12661266
if (IsUnderPostmaster == false) {
12671267
puts("\nPOSTGRES backend interactive interface");
1268-
puts("$Revision: 1.10 $ $Date: 1996/10/13 04:49:57 $");
1268+
puts("$Revision: 1.11 $ $Date: 1996/10/30 21:18:22 $");
12691269
}
12701270

12711271
/* ----------------
@@ -1295,7 +1295,7 @@ PostgresMain(int argc, char *argv[])
12951295
if (FD_ISSET(serverSock, &rmask)) {
12961296
/* new connection pending on our well-known port's socket */
12971297
newFE = (FrontEnd*) malloc (sizeof(FrontEnd));
1298-
memset(newFE, sizeof(FrontEnd),0);
1298+
memset(newFE, 0, sizeof(FrontEnd));
12991299
newFE->fn_connected = false;
13001300
newFE->fn_done = false;
13011301
newPort = &(newFE->fn_port);

0 commit comments

Comments
 (0)