From bf87ad4667a914122f2eaa5de924a4daa80f7af8 Mon Sep 17 00:00:00 2001 From: Tom Yu Date: Thu, 15 Aug 2002 20:20:59 +0000 Subject: [PATCH] * kvno.c (do_v4_kvno): Initialize name, inst, realm to empty strings. git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14725 dc483132-0cff-0310-8789-dd5450dbe970 --- src/clients/kvno/ChangeLog | 5 +++++ src/clients/kvno/kvno.c | 1 + 2 files changed, 6 insertions(+) diff --git a/src/clients/kvno/ChangeLog b/src/clients/kvno/ChangeLog index 77f1a2559..380b58231 100644 --- a/src/clients/kvno/ChangeLog +++ b/src/clients/kvno/ChangeLog @@ -1,3 +1,8 @@ +2002-08-15 Tom Yu + + * kvno.c (do_v4_kvno): Initialize name, inst, realm to empty + strings. + 2002-07-30 Ezra Peisach * kvno.c (do_v4_kvno): If not compiling with v4 support, xusage diff --git a/src/clients/kvno/kvno.c b/src/clients/kvno/kvno.c index d007fa238..505a73c87 100644 --- a/src/clients/kvno/kvno.c +++ b/src/clients/kvno/kvno.c @@ -106,6 +106,7 @@ static void do_v4_kvno (int count, char *names[]) char name[ANAME_SZ], inst[INST_SZ], realm[REALM_SZ]; KTEXT_ST req; CREDENTIALS creds; + *name = *inst = *realm = '\0'; err = kname_parse (name, inst, realm, names[i]); if (err) { fprintf(stderr, "%s: error parsing name '%s': %s\n", -- 2.26.2