mirror of
https://github.com/gnustep/libs-base.git
synced 2025-04-22 16:33:29 +00:00
(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:
parent
22f0c52cfd
commit
7dc8a65045
1 changed files with 4 additions and 1 deletions
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue