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

Commit b68a56a

Browse files
committed
Thomas pointed out this bug in my non-blocking stuff.
Alfred Perlstein
1 parent ea81522 commit b68a56a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/interfaces/libpq/fe-misc.c

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
*
2626
*
2727
* IDENTIFICATION
28-
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.39 2000/02/07 23:10:11 petere Exp $
28+
* $Header: /cvsroot/pgsql/src/interfaces/libpq/fe-misc.c,v 1.40 2000/04/11 19:00:31 momjian Exp $
2929
*
3030
*-------------------------------------------------------------------------
3131
*/
@@ -115,6 +115,8 @@ pqPutBytes(const char *s, size_t nbytes, PGconn *conn)
115115
Max(conn->outBufSize - conn->outCount, 0), nbytes);
116116
return EOF;
117117
}
118+
/* fixup avail for while loop */
119+
avail = Max(conn->outBufSize - conn->outCount, 0);
118120
}
119121

120122
/*

0 commit comments

Comments
 (0)