(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:
Assar Westerlund
1999-10-28 23:22:41 +00:00
parent cd2af38c6d
commit 9a7ad76ce5

View File

@@ -39,6 +39,9 @@ RCSID("$Id$");
static void
print_tree(struct krb5_config_binding *b, int level)
{
if (b == NULL)
return;
printf("%*s%s%s%s", level * 4, "",
(level == 0) ? "[" : "", b->name, (level == 0) ? "]" : "");
if(b->type == krb5_config_list) {