[psqlODBC 08.02.0401] Typo

From: Rainer Bauer <usenet(at)munnin(dot)com>
To: pgsql-odbc(at)postgresql(dot)org
Subject: [psqlODBC 08.02.0401] Typo
Date: 2007-06-01 10:29:02
Message-ID: 22tv539amc962jer1c6dujom5g31761uhh@4ax.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

Responses

Browse pgsql-odbc by date

  From Date Subject
Next Message Rainer Bauer 2007-06-01 10:49:35 [psqlODBC 08.02.0401] Driver option socket buffer size is ignored
Previous Message Adnan DURSUN 2007-06-01 07:38:30 LISTEN / NOTIFY Feture