* kvno.c (do_v4_kvno): Initialize name, inst, realm to empty
authorTom Yu <tlyu@mit.edu>
Thu, 15 Aug 2002 20:20:59 +0000 (20:20 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 15 Aug 2002 20:20:59 +0000 (20:20 +0000)
strings.

git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@14725 dc483132-0cff-0310-8789-dd5450dbe970

src/clients/kvno/ChangeLog
src/clients/kvno/kvno.c

index 77f1a2559bf7cb192f764542e931f2633b54b551..380b58231ab68569611e110c8c88ab5b481cfb75 100644 (file)
@@ -1,3 +1,8 @@
+2002-08-15  Tom Yu  <tlyu@mit.edu>
+
+       * kvno.c (do_v4_kvno): Initialize name, inst, realm to empty
+       strings.
+
 2002-07-30  Ezra Peisach  <epeisach@bu.edu>
 
        * kvno.c (do_v4_kvno): If not compiling with v4 support, xusage
index d007fa238d33ce192c2ea2d516083e0ccdb9c2ab..505a73c875bd7119a97ee3f02a1238ca590f86fa 100644 (file)
@@ -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",