aboutsummaryrefslogtreecommitdiff
path: root/src/interfaces/libpq/fe-misc.c
diff options
context:
space:
mode:
authorMichael Meskes <meskes@postgresql.org>2009-05-21 12:54:27 +0000
committerMichael Meskes <meskes@postgresql.org>2009-05-21 12:54:27 +0000
commitab9981ccc69b6d850ed9c671b1a64a8b90b33032 (patch)
treec2883837a3dba521805ddbfb1c72e4b9660e3455 /src/interfaces/libpq/fe-misc.c
parentc697337c766e0ac313227a5363965cecef8f0224 (diff)
downloadpostgresql-ab9981ccc69b6d850ed9c671b1a64a8b90b33032.tar.gz
postgresql-ab9981ccc69b6d850ed9c671b1a64a8b90b33032.zip
Removed comparison of unsigned expression < 0.
Diffstat (limited to 'src/interfaces/libpq/fe-misc.c')
-rw-r--r--src/interfaces/libpq/fe-misc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/interfaces/libpq/fe-misc.c b/src/interfaces/libpq/fe-misc.c
index fe1101bed9d..60459cb7e1c 100644
--- a/src/interfaces/libpq/fe-misc.c
+++ b/src/interfaces/libpq/fe-misc.c
@@ -23,7 +23,7 @@
* Portions Copyright (c) 1994, Regents of the University of California
*
* IDENTIFICATION
- * $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.138 2009/01/01 17:24:03 momjian Exp $
+ * $PostgreSQL: pgsql/src/interfaces/libpq/fe-misc.c,v 1.139 2009/05/21 12:54:27 meskes Exp $
*
*-------------------------------------------------------------------------
*/
@@ -178,7 +178,7 @@ pqPuts(const char *s, PGconn *conn)
int
pqGetnchar(char *s, size_t len, PGconn *conn)
{
- if (len < 0 || len > (size_t) (conn->inEnd - conn->inCursor))
+ if (len > (size_t) (conn->inEnd - conn->inCursor))
return EOF;
memcpy(s, conn->inBuffer + conn->inCursor, len);