Skip site navigation (1) Skip section navigation (2)

Re: [psqlODBC 08.02.0401] Typo

From: Hiroshi Inoue <inoue(at)tpf(dot)co(dot)jp>
To: Rainer Bauer <usenet(at)munnin(dot)com>
Cc: pgsql-odbc(at)postgresql(dot)org
Subject: Re: [psqlODBC 08.02.0401] Typo
Date: 2007-06-01 21:52:44
Message-ID: 4660952C.9060002@tpf.co.jp (view raw or flat)
Thread:
Lists: 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

In response to

pgsql-odbc by date

Next:From: Mark Cave-AylandDate: 2007-06-03 13:26:26
Subject: Build problems with latest CVS (2007-06-03) on MSVC++ Express 2005
Previous:From: Adnan DURSUNDate: 2007-06-01 18:57:52
Subject: Re: LISTEN / NOTIFY Feature

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group