(print_tree): check for empty tree
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7279 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -39,6 +39,9 @@ RCSID("$Id$");
|
|||||||
static void
|
static void
|
||||||
print_tree(struct krb5_config_binding *b, int level)
|
print_tree(struct krb5_config_binding *b, int level)
|
||||||
{
|
{
|
||||||
|
if (b == NULL)
|
||||||
|
return;
|
||||||
|
|
||||||
printf("%*s%s%s%s", level * 4, "",
|
printf("%*s%s%s%s", level * 4, "",
|
||||||
(level == 0) ? "[" : "", b->name, (level == 0) ? "]" : "");
|
(level == 0) ? "[" : "", b->name, (level == 0) ? "]" : "");
|
||||||
if(b->type == krb5_config_list) {
|
if(b->type == krb5_config_list) {
|
||||||
|
Reference in New Issue
Block a user