mirror of
https://github.com/gnustep/libs-base.git
synced 2025-06-04 18:40:47 +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
ff9b9b68a1
commit
3e6c96f2d3
1 changed files with 4 additions and 1 deletions
|
@ -252,7 +252,10 @@ if (debug_textcoder) \
|
||||||
|
|
||||||
- (void) encodeName: (const char*)n
|
- (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 */
|
/* Buffer is malloc'ed */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue