Re: compiler warnings in ecpglib/execute.c (uninitialized local variable 'prepname' used)

From: Michael Meskes <meskes(at)postgresql(dot)org>
To: Hannes Eder <Hannes(at)HannesEder(dot)net>
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: Re: compiler warnings in ecpglib/execute.c (uninitialized local variable 'prepname' used)
Date: 2007-09-21 11:00:15
Message-ID: 20070921110015.GB25527@feivel.credativ.de
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

On Thu, Sep 20, 2007 at 02:05:57PM +0200, Hannes Eder wrote:
> while rebuilding pgsql with msvc 2005 I noticed this compiler warning:
>
> .\src\interfaces\ecpg\ecpglib\execute.c(1495): warning C4700: uninitialized
> local variable 'prepname' used

This free() call seems to be absolutely superfluous, so I removed it.

Fixed in CVS head.

Thanks for the report.

Michael
--
Michael Meskes
Email: Michael at Fam-Meskes dot De, Michael at Meskes dot (De|Com|Net|Org)
ICQ: 179140304, AIM/Yahoo: michaelmeskes, Jabber: meskes(at)jabber(dot)org
Go SF 49ers! Go Rhein Fire! Use Debian GNU/Linux! Use PostgreSQL!

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Abhijit Menon-Sen 2007-09-21 11:20:15 TODO/exotic features/sql*net
Previous Message Michael Meskes 2007-09-21 10:45:18 Re: ecpg PREPARE is not thread safe