File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -965,8 +965,8 @@ connectOptions2(PGconn *conn)
965965 {
966966 conn -> status = CONNECTION_BAD ;
967967 printfPQExpBuffer (& conn -> errorMessage ,
968- libpq_gettext ("could not match %d host names to %d hostaddrs\n" ),
969- count_comma_separated_elems (conn -> pghost ), conn -> nconnhost );
968+ libpq_gettext ("could not match %d host names to %d hostaddrs\n" ),
969+ count_comma_separated_elems (conn -> pghost ), conn -> nconnhost );
970970 return false;
971971 }
972972 }
@@ -1097,7 +1097,7 @@ connectOptions2(PGconn *conn)
10971097 char * pwhost = conn -> connhost [i ].host ;
10981098
10991099 if (conn -> connhost [i ].type == CHT_HOST_ADDRESS &&
1100- conn -> connhost [i ].host != NULL && conn -> connhost [i ].host != '\0' )
1100+ conn -> connhost [i ].host != NULL && conn -> connhost [i ].host [ 0 ] != '\0' )
11011101 pwhost = conn -> connhost [i ].hostaddr ;
11021102
11031103 conn -> connhost [i ].password =
You can’t perform that action at this time.
0 commit comments