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

Commit b3a1ef5

Browse files
committed
Add missing "!= NULL", for the sake of consistency.
Fujii Masao
1 parent e31bf1c commit b3a1ef5

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/backend/replication/libpqwalreceiver/libpqwalreceiver.c

+3-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
*
1111
*
1212
* IDENTIFICATION
13-
* $PostgreSQL: pgsql/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c,v 1.1 2010/01/20 09:16:24 heikki Exp $
13+
* $PostgreSQL: pgsql/src/backend/replication/libpqwalreceiver/libpqwalreceiver.c,v 1.2 2010/01/20 11:58:44 heikki Exp $
1414
*
1515
*-------------------------------------------------------------------------
1616
*/
@@ -62,7 +62,8 @@ void
6262
_PG_init(void)
6363
{
6464
/* Tell walreceiver how to reach us */
65-
if (walrcv_connect != NULL || walrcv_receive != NULL || walrcv_disconnect)
65+
if (walrcv_connect != NULL || walrcv_receive != NULL ||
66+
walrcv_disconnect != NULL)
6667
elog(ERROR, "libpqwalreceiver already loaded");
6768
walrcv_connect = libpqrcv_connect;
6869
walrcv_receive = libpqrcv_receive;

0 commit comments

Comments
 (0)