ECPG warning

Started by Peter Eisentrautabout 24 years ago2 messages
#1Peter Eisentraut
peter_e@gmx.net

I'm getting a warning:

gcc -O2 -Wall -Wmissing-prototypes -Wmissing-declarations -Wcast-align
-Wpointer-arith -fpic -I../../../../src/interfaces/ecpg/include
-I../../../../src/interfaces/libpq -I../../../../src/include -c -o
data.o data.c
data.c: In function `ECPGget_data':
data.c:96: warning: `res' might be used uninitialized in this function

The code looks pretty suspicious, 'res' and 'ures' might be getting mixed
up. Check please.

--
Peter Eisentraut peter_e@gmx.net

#2Tom Lane
tgl@sss.pgh.pa.us
In reply to: Peter Eisentraut (#1)
Re: ECPG warning

Peter Eisentraut <peter_e@gmx.net> writes:

The code looks pretty suspicious, 'res' and 'ures' might be getting mixed
up. Check please.

Clearly a copy-and-paste bug. I committed a fix an hour or so ago.

regards, tom lane