Giacomo Cariello <[EMAIL PROTECTED]> 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

---------------------------(end of broadcast)---------------------------
TIP 6: Have you searched our list archives?

               http://archives.postgresql.org

Reply via email to