|
From: Matthew J F. <mfl...@se...> - 2005-08-11 14:40:55
|
Hi
valgrind 3.0.0 (as did 2.4) reports the following,..
'Conditional jump or move depends on uninitialised value(s)'
for the following sample code, the line 'if ( *(Deflate + 8 ) == ';' )'
is the line for which the warning is given.
int main(void)
{
char *Deflate = strstr( "gzip,deflate", "deflate" );
if ( !Deflate )
return 0;
if ( *(Deflate + 8 ) == ';' )
return 1;
}
why ?, '\0' does not equal uninitialised does it ?
just out of interest purify and boundschecker on win32 dont have a problem
with this.
regards
---
Matthew J Fletcher
Embedded Software
Serck Controls Ltd
---
**********************************************************************
Serck Controls Ltd, Rowley Drive, Coventry, CV3 4FH, UK
Tel: +44 (0) 24 7630 5050 Fax: +44 (0) 24 7630 2437
Web: www.serck-controls.com Admin: po...@se...
A subsidiary of Serck Controls Pty. Ltd. Reg. in England No. 4353634
**********************************************************************
This email and files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the above. Any views or opinions presented are those of the author
and do not necessarily represent those of Serck Controls Ltd.
This message has been checked by MessageLabs
******************************************************************
|