(encodeName): Do right thing for NULL name.

git-svn-id: svn+ssh://svn.gna.org/svn/gnustep/libs/base/trunk@25 72102866-910b-0410-8b05-ffd578937521
This commit is contained in:
mccallum 1994-11-08 23:43:33 +00:00
parent ff9b9b68a1
commit 3e6c96f2d3

View file

@ -252,7 +252,10 @@ if (debug_textcoder) \
- (void) encodeName: (const char*)n
{
[stream writeFormat:"%*s<%s>\n", indentation, "", n];
if (n)
[stream writeFormat:"%*s<%s>\n", indentation, "", n];
else
[stream writeFormat:"%*s<NULL>\n", indentation, "", n];
}
/* Buffer is malloc'ed */