Remove dead assignment of variables that are never used
authorEzra Peisach <epeisach@mit.edu>
Sun, 12 Apr 2009 14:09:29 +0000 (14:09 +0000)
committerEzra Peisach <epeisach@mit.edu>
Sun, 12 Apr 2009 14:09:29 +0000 (14:09 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22194 dc483132-0cff-0310-8789-dd5450dbe970

src/lib/krb5/ccache/cc_retr.c
src/lib/krb5/ccache/ser_cc.c

index 1e25a048c198024b9f51fe7f3974ca0fd4d39a7a..8d3398b18758c9c697be5edb1d372434eccef21c 100644 (file)
@@ -227,7 +227,7 @@ krb5_cc_retrieve_cred_seq (krb5_context context, krb5_ccache id,
          return kret;
      }
 
-     while ((kret = krb5_cc_next_cred(context, id, &cursor, &fetchcreds)) == KRB5_OK) {
+     while (krb5_cc_next_cred(context, id, &cursor, &fetchcreds) == KRB5_OK) {
       if (krb5int_cc_creds_match_request(context, whichfields, mcreds, &fetchcreds))
       {
              if (ktypes) {
index 33e7f51cc77eb60f638aa4bd488a5a18b9b0ce1f..882dbf714d3e2943921993f7f722637562fccc94 100644 (file)
@@ -100,7 +100,6 @@ krb5_ccache_externalize(krb5_context kcontext, krb5_pointer arg, krb5_octet **bu
     krb5_octet         *bp;
     size_t             remain;
     char               *ccname;
-    size_t             namelen;
     const char         *fnamep;
 
     required = 0;
@@ -114,10 +113,7 @@ krb5_ccache_externalize(krb5_context kcontext, krb5_pointer arg, krb5_octet **bu
            /* Our identifier */
            (void) krb5_ser_pack_int32(KV5M_CCACHE, &bp, &remain);
 
-           /* Calculate the length of the name */
-           namelen = ccache->ops->prefix ? strlen(ccache->ops->prefix)+1 : 0;
            fnamep = krb5_cc_get_name(kcontext, ccache);
-           namelen += (strlen(fnamep)+1);
 
            if (ccache->ops->prefix) {
                if (asprintf(&ccname, "%s:%s", ccache->ops->prefix, fnamep) < 0)