|
From: Nicholas N. <nj...@cs...> - 2005-08-11 15:37:21
|
On Thu, 11 Aug 2005, Dennis Lubert wrote: > whoops, ok, you said that it was in the if statement, sorry... > but, Deflate will point to deflate thus... > > *(Deflate + 0) == 'd' > *(Deflate + 1) == 'e' > *(Deflate + 2) == 'f' > *(Deflate + 3) == 'l' > *(Deflate + 4) == 'a' > *(Deflate + 5) == 't' > *(Deflate + 6) == 'e' > *(Deflate + 7) == '\0' > *(Deflate + 8) == '<undefined>' > > or am I completely missing something ? (btw why doesnt valgrind then > report this here...) I think the string will be in static memory which is auto-zeroed, not undefined. So from Memcheck's point of view everything is ok. At least, I also don't get an error for this program -- Matthew, can you post the full Valgrind output you get for this program? Nick |