summaryrefslogtreecommitdiffstats
path: root/src/clients/kvno/kvno.c
diff options
context:
space:
mode:
authorTom Yu <tlyu@mit.edu>2002-08-15 20:20:59 +0000
committerTom Yu <tlyu@mit.edu>2002-08-15 20:20:59 +0000
commitbf87ad4667a914122f2eaa5de924a4daa80f7af8 (patch)
tree8984bb26f5fe129cd18a10ae7242f46cd929e694 /src/clients/kvno/kvno.c
parent184dd2a8ca934816acca78b28389bf301ea11beb (diff)
downloadkrb5-bf87ad4667a914122f2eaa5de924a4daa80f7af8.tar.gz
krb5-bf87ad4667a914122f2eaa5de924a4daa80f7af8.tar.xz
krb5-bf87ad4667a914122f2eaa5de924a4daa80f7af8.zip
* 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
Diffstat (limited to 'src/clients/kvno/kvno.c')
-rw-r--r--src/clients/kvno/kvno.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/clients/kvno/kvno.c b/src/clients/kvno/kvno.c
index d007fa238d..505a73c875 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",