Skip to content

Commit 8224e42

Browse files
committed
Merge branch 'master' of github.com:leethomason/tinyxml2
2 parents 88d678c + 935ddec commit 8224e42

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

xmltest.cpp

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,13 +45,15 @@ bool XMLTest (const char* testString, const char* expected, const char* found, b
4545
printf (" %s\n", testString);
4646
}
4747
else {
48+
const char* expectedStr = expected ? expected : "(null)";
49+
const char* foundStr = found ? found : "(null)";
4850
if ( extraNL ) {
4951
printf( " %s\n", testString );
50-
printf( "%s\n", expected );
51-
printf( "%s\n", found );
52+
printf( "%s\n", expectedStr );
53+
printf( "%s\n", foundStr );
5254
}
5355
else {
54-
printf (" %s [%s][%s]\n", testString, expected, found);
56+
printf (" %s [%s][%s]\n", testString, expectedStr, foundStr);
5557
}
5658
}
5759

0 commit comments

Comments
 (0)