From b6b1fb513607c04a9710f17286e36474c2929e93 Mon Sep 17 00:00:00 2001 From: Ken Raeburn Date: Tue, 21 Aug 2001 23:41:54 +0000 Subject: [PATCH] * walk_rtree.c (krb5_walk_realm_tree): Initialize slen to silence compiler warning git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@13683 dc483132-0cff-0310-8789-dd5450dbe970 --- src/lib/krb5/krb/ChangeLog | 5 +++++ src/lib/krb5/krb/walk_rtree.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/lib/krb5/krb/ChangeLog b/src/lib/krb5/krb/ChangeLog index 4009fb29a..7f156034e 100644 --- a/src/lib/krb5/krb/ChangeLog +++ b/src/lib/krb5/krb/ChangeLog @@ -1,3 +1,8 @@ +2001-08-21 Ken Raeburn + + * walk_rtree.c (krb5_walk_realm_tree): Initialize slen to silence + compiler warning. + 2001-08-08 * walk_rtree.c (krb5_walk_realm_tree): Do not try to free const char *. diff --git a/src/lib/krb5/krb/walk_rtree.c b/src/lib/krb5/krb/walk_rtree.c index a3a7ee2bf..b8160fdcc 100644 --- a/src/lib/krb5/krb/walk_rtree.c +++ b/src/lib/krb5/krb/walk_rtree.c @@ -106,7 +106,7 @@ krb5_walk_realm_tree(context, client, server, tree, realm_branch_char) register char *prevccp = 0, *prevscp = 0; char *com_sdot = 0, *com_cdot = 0; register int i, links = 0; - int clen, slen; + int clen, slen = -1; krb5_data tmpcrealm, tmpsrealm; int nocommon = 1; -- 2.26.2