Re: resetStringInfo

From: Neil Conway <neilc(at)samurai(dot)com>
To: Joe Conway <mail(at)joeconway(dot)com>
Cc: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>, pgsql-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: resetStringInfo
Date: 2007-03-03 19:33:12
Message-ID: 1172950392.6571.62.camel@localhost.localdomain
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

On Sat, 2007-03-03 at 10:57 -0800, Joe Conway wrote:
> I have used pfree(var.data) combined with initStringInfo(&var) in a few
> places (e.g. in tablefunc.c).

Thanks, fixed. I also did a bit more searching and found some more
places where resetStringInfo() could be used to replace the previous
custom coding. Patch attached and applied.

-Neil

Attachment Content-Type Size
reset_string_info-5.patch text/x-patch 13.9 KB

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message Bruce Momjian 2007-03-03 19:41:38 Re: xpath_array with namespaces support
Previous Message Joe Conway 2007-03-03 18:57:48 Re: resetStringInfo