pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
[psqlODBC 08.02.0401] Typo
2+ messages / 2 participants
[nested] [flat]

* [psqlODBC 08.02.0401] Typo
@ 2007-06-01 10:29 Rainer Bauer <usenet@munnin.com>
  2007-06-01 21:52 ` Re: [psqlODBC 08.02.0401] Typo Hiroshi Inoue <inoue@tpf.co.jp>
  0 siblings, 1 reply; 2+ messages in thread

From: Rainer Bauer @ 2007-06-01 10:29 UTC (permalink / raw)
  To: pgsql-odbc

Hi,

while browsing the source I found a typo in socket.c::SOCK_Constructor()

Original code:
		if (rv)
			rv->buffer_size =
conn->connInfo.drivers.socket_buffersize;
		else
			rv->buffer_size = globals.socket_buffersize;

But since rv is allocated and checked before, the test should probably be:
		if (conn)
			rv->buffer_size =
conn->connInfo.drivers.socket_buffersize;
		else
			rv->buffer_size = globals.socket_buffersize;

Rainer



^ permalink  raw  reply  [nested|flat] 2+ messages in thread

* Re: [psqlODBC 08.02.0401] Typo
  2007-06-01 10:29 [psqlODBC 08.02.0401] Typo Rainer Bauer <usenet@munnin.com>
@ 2007-06-01 21:52 ` Hiroshi Inoue <inoue@tpf.co.jp>
  0 siblings, 0 replies; 2+ messages in thread

From: Hiroshi Inoue @ 2007-06-01 21:52 UTC (permalink / raw)
  To: Rainer Bauer <usenet@munnin.com>; +Cc: pgsql-odbc

Rainer Bauer wrote:
> Hi,
> 
> while browsing the source I found a typo in socket.c::SOCK_Constructor()
> 
> Original code:
> 		if (rv)
> 			rv->buffer_size =
> conn->connInfo.drivers.socket_buffersize;
> 		else
> 			rv->buffer_size = globals.socket_buffersize;
> 
> But since rv is allocated and checked before, the test should probably be:
> 		if (conn)
> 			rv->buffer_size =
> conn->connInfo.drivers.socket_buffersize;
> 		else
> 			rv->buffer_size = globals.socket_buffersize;

Oops you are right.
Thanks.

regards,
Hiroshi Inoue



^ permalink  raw  reply  [nested|flat] 2+ messages in thread


end of thread, other threads:[~2007-06-01 21:52 UTC | newest]

Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2007-06-01 10:29 [psqlODBC 08.02.0401] Typo Rainer Bauer <usenet@munnin.com>
2007-06-01 21:52 ` Hiroshi Inoue <inoue@tpf.co.jp>

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox