summaryrefslogtreecommitdiffstats
path: root/testsuites/sptests/sp43/init.c
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-15 16:33:22 +0000
committerJoel Sherrill <joel.sherrill@OARcorp.com>2008-08-15 16:33:22 +0000
commit4f6bb5b01f8160a05b62d99f4669f64c8a960bf2 (patch)
treeacf9f20ba63b4417ef5498bd36f5c3d07f0d8661 /testsuites/sptests/sp43/init.c
parent2008-08-15 Joel Sherrill <joel.sherrill@OARcorp.com> (diff)
downloadrtems-4f6bb5b01f8160a05b62d99f4669f64c8a960bf2.tar.bz2
2008-08-15 Joel Sherrill <joel.sherrill@OARcorp.com>
* sp43/init.c: Fix derefence of uninitialized pointer.
Diffstat (limited to '')
-rw-r--r--testsuites/sptests/sp43/init.c4
1 files changed, 2 insertions, 2 deletions
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( "-" );