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

[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 (view raw or flat)
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

pgsql-odbc by date

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

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