pg.ddx.io  pgsql-odbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Hiroshi Inoue <inoue@tpf.co.jp>
To: Rainer Bauer <usenet@munnin.com>
Cc: pgsql-odbc@postgresql.org
Subject: Re: [psqlODBC 08.02.0401] Typo
Date: Sat, 02 Jun 2007 06:52:44 +0900
Message-ID: <4660952C.9060002@tpf.co.jp> (raw)
In-Reply-To: <22tv539amc962jer1c6dujom5g31761uhh@4ax.com>
References: <22tv539amc962jer1c6dujom5g31761uhh@4ax.com>

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



view thread (2+ messages)

Message-ID: <4660952C.9060002@tpf.co.jp>
Permalink:  ../4660952C.9060002@tpf.co.jp/
Also on:    postgresql.org/message-id/4660952C.9060002@tpf.co.jp

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-odbc@postgresql.org
  Cc: inoue@tpf.co.jp, usenet@munnin.com
  Subject: Re: [psqlODBC 08.02.0401] Typo
  In-Reply-To: <4660952C.9060002@tpf.co.jp>
  References: <22tv539amc962jer1c6dujom5g31761uhh@4ax.com> <4660952C.9060002@tpf.co.jp>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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