Re: repalloc bug - Mailing list pgsql-bugs

From Tom Lane
Subject Re: repalloc bug
Date
Msg-id 21462.1061494382@sss.pgh.pa.us
Whole thread Raw
In response to repalloc bug  (Giacomo Cariello <jwk@bug.it>)
List pgsql-bugs
Giacomo Cariello <jwk@bug.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

pgsql-bugs by date:

Previous
From: Jonathan Gardner
Date:
Subject: Renaming table doesn't rename primary key index or serial sequences
Next
From: Stephan Szabo
Date:
Subject: Re: postgresql 7.3.2 bug on date '1901-12-13' and '1901-12