Re: [psqlODBC 08.02.0401] Typo - Mailing list pgsql-odbc

From Hiroshi Inoue
Subject Re: [psqlODBC 08.02.0401] Typo
Date
Msg-id 4660952C.9060002@tpf.co.jp
Whole thread Raw
In response to [psqlODBC 08.02.0401] Typo  (Rainer Bauer <usenet@munnin.com>)
List 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

pgsql-odbc by date:

Previous
From: "Ben Trewern"
Date:
Subject: Re: Replacing IDENTITY with lastval()
Next
From: Mark Cave-Ayland
Date:
Subject: Build problems with latest CVS (2007-06-03) on MSVC++ Express 2005