summaryrefslogtreecommitdiffstats
path: root/testsuites
diff options
context:
space:
mode:
Diffstat (limited to 'testsuites')
-rw-r--r--testsuites/sptests/ChangeLog4
-rw-r--r--testsuites/sptests/sp43/init.c4
2 files changed, 6 insertions, 2 deletions
diff --git a/testsuites/sptests/ChangeLog b/testsuites/sptests/ChangeLog
index 0804e2e50e..9df724611b 100644
--- a/testsuites/sptests/ChangeLog
+++ b/testsuites/sptests/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-15 Joel Sherrill <joel.sherrill@OARcorp.com>
+
+ * sp43/init.c: Fix derefence of uninitialized pointer.
+
2008-08-07 Joel Sherrill <joel.sherrill@OARcorp.com>
* spsize/size.c: Make _System_state_Is_multiprocessing unused when
diff --git a/testsuites/sptests/sp43/init.c b/testsuites/sptests/sp43/init.c
index b5ec115c68..d5fba8ad95 100644
--- a/testsuites/sptests/sp43/init.c
+++ b/testsuites/sptests/sp43/init.c
@@ -64,8 +64,8 @@ void change_name(
else {
printf( "(" );
for (c=newName ; *c ; ) {
- if (isprint(*ptr)) printf( "%c", *c );
- else printf( "0x%02x", *c );
+ if (isprint(*c)) printf( "%c", *c );
+ else printf( "0x%02x", *c );
c++;
if ( *c )
printf( "-" );