Re: ecpg warning

From: Tom Lane <tgl(at)sss(dot)pgh(dot)pa(dot)us>
To: Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us>
Cc: Michael Meskes <michael(at)fam-meskes(dot)de>, PostgreSQL-patches <pgsql-patches(at)postgresql(dot)org>
Subject: Re: ecpg warning
Date: 2003-07-01 22:14:51
Message-ID: 22444.1057097691@sss.pgh.pa.us
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-patches

Bruce Momjian <pgman(at)candle(dot)pha(dot)pa(dot)us> writes:
> Michael, I am seeing this ecpg warning:
> informix.c:290: warning: `nres' might be used uninitialized in
> this function

> Can we initialize it to NULL to suppress the warning?

I believe the compiler has correctly identified a bug here; initializing
to NULL will just result in a guaranteed crash.

regards, tom lane

In response to

Browse pgsql-patches by date

  From Date Subject
Next Message sumit 2003-07-02 03:26:41 Re: UPDATED Patch for adding DATACUBE operator
Previous Message Bruce Momjian 2003-07-01 20:16:17 Re: sslmode patch