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

From: Hannes Eder <Hannes(at)HannesEder(dot)net>
To: meskes(at)postgresql(dot)org
Cc: pgsql-hackers <pgsql-hackers(at)postgresql(dot)org>
Subject: compiler warnings in ecpglib/execute.c (uninitialized local variable 'prepname' used)
Date: 2007-09-20 12:05:57
Message-ID: 46F26225.20007@HannesEder.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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

ECPGfree(prepname) is called in line 1495, prepname was not
unitialized befor. Below the line 1495 ECPGfree(prepname) is not
called in the function ECPGdo. I didn't investigate the code in
detail, but I assume that at least in some error conditions (when the
function returns false?) ECPGfree(prepname) should be called.

-Hannes

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannes Eder 2007-09-20 12:06:08 minor compiler warning in backend/utils/adt/tsrank.c
Previous Message Zdenek Kotala 2007-09-20 12:02:08 Re: Timezones change - never ending story