(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:
Andrew McCallum 1994-11-08 23:43:33 +00:00
parent 22f0c52cfd
commit 7dc8a65045

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 */