Re: repalloc bug

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Giacomo Cariello <jwk(at)bug(dot)it>
Cc: pgsql-bugs(at)postgresql(dot)org
Subject: Re: repalloc bug
Date: 2003-08-21 19:33:02
Message-ID: 21462.1061494382@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

Giacomo Cariello <jwk(at)bug(dot)it> writes:
> void repalloc_bubble(u_int8_t *buf, u_int32_t s)
> {
> buf = repalloc(buf, s);
> bzero(buf, s);
> }

> repalloc_bubble(d->buf, d->size);

This doesn't update d->buf in the calling function; the result of
repalloc is only assigned to repalloc_bubble's local variable buf.

regards, tom lane

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Stephan Szabo 2003-08-21 20:04:07 Re: postgresql 7.3.2 bug on date '1901-12-13' and '1901-12
Previous Message Jonathan Gardner 2003-08-21 19:24:05 Renaming table doesn't rename primary key index or serial sequences