Ticket #49 (closed defect)
Uninitialized variables in transport.c
|Reported by:||anonymous||Owned by:||bagder|
I have a question about libssh2, especifically about transport.c code.
I'm running valgrind within my program and sometimes it warns me about using uninitialized variables in transport.c. I checked it and I think it really is doing that, but I wanted to confirm that with you.
At line 304 of transport.c, there's: "remainbuf = p->writeidx - p->readidx;". But 'p->readidx' and 'p->writeidx' are not initialized. They are initialized after this line.
Can you confirm this? Is there a reason for this? If there is, could you explain it to me, please?
Thank you for your support and attention.
royzrj at gmail dot com