diff options
Diffstat (limited to 'testsuites/psxtests/psxhdrs/strings/index.c')
-rw-r--r-- | testsuites/psxtests/psxhdrs/strings/index.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/testsuites/psxtests/psxhdrs/strings/index.c b/testsuites/psxtests/psxhdrs/strings/index.c index 557a97760c..ea8ebf024d 100644 --- a/testsuites/psxtests/psxhdrs/strings/index.c +++ b/testsuites/psxtests/psxhdrs/strings/index.c @@ -38,16 +38,12 @@ int test( void ); -int result = 1; - int test( void ) { char *p; char *string = "This is a string for testing"; p = index( string, 'i' ); - (void) p; - result = 0; - return result; + return ( p != NULL ); } |