summaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-connect.c
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-03-25 09:08:06 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-03-25 09:08:06 +0000
commit6304e2c273b9ae13f4fde44c02c535c56b45cd91 (patch)
tree637e768483b9824c7a7d8707f289a1634c337eb5 /src/interfaces/libpq/fe-connect.c
parentea2fa32eff17b8ac2b51c0d4dafe43a9f2c5d014 (diff)
Here's two more diffs...
The first fixes a warning from gcc about the assignment within the condition. The extra set of parens should not make a difference, but with -Werror, they are necessary. The second fixes an "ln -s" invocation that assumes the current directory is implicitly the target if not specified. Not true in all cases, and again, it should not make a difference except to those implementation that it does. From: "Michael P. Snyder" <msnyder@hawkeye.huntersmoon.com>
Diffstat (limited to 'src/interfaces/libpq/fe-connect.c')
-rw-r--r--src/interfaces/libpq/fe-connect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-connect.c b/src/interfaces/libpq/fe-connect.c
index b5ac17f5cfa..979fe8559bc 100644
--- a/src/interfaces/libpq/fe-connect.c
+++ b/src/interfaces/libpq/fe-connect.c
@@ -7,7 +7,7 @@
*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.26 1997/03/25 02:37:21 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-connect.c,v 1.27 1997/03/25 09:08:06 scrappy Exp $
*
*-------------------------------------------------------------------------
*/
@@ -536,7 +536,7 @@ connectDB(PGconn *conn)
{
const char *val;
- if(val = getenv(eo->envName))
+ if((val = getenv(eo->envName)))
{
PGresult *res;