svn rev #22194: trunk/src/lib/krb5/ccache/

epeisach@MIT.EDU epeisach at MIT.EDU
Sun Apr 12 10:09:29 EDT 2009


http://src.mit.edu/fisheye/changelog/krb5/?cs=22194
Commit By: epeisach
Log Message:
Remove dead assignment of variables that are never used.




Changed Files:
U   trunk/src/lib/krb5/ccache/cc_retr.c
U   trunk/src/lib/krb5/ccache/ser_cc.c
Modified: trunk/src/lib/krb5/ccache/cc_retr.c
===================================================================
--- trunk/src/lib/krb5/ccache/cc_retr.c	2009-04-10 21:17:03 UTC (rev 22193)
+++ trunk/src/lib/krb5/ccache/cc_retr.c	2009-04-12 14:09:29 UTC (rev 22194)
@@ -227,7 +227,7 @@
 	  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) {

Modified: trunk/src/lib/krb5/ccache/ser_cc.c
===================================================================
--- trunk/src/lib/krb5/ccache/ser_cc.c	2009-04-10 21:17:03 UTC (rev 22193)
+++ trunk/src/lib/krb5/ccache/ser_cc.c	2009-04-12 14:09:29 UTC (rev 22194)
@@ -100,7 +100,6 @@
     krb5_octet		*bp;
     size_t		remain;
     char		*ccname;
-    size_t		namelen;
     const char		*fnamep;
 
     required = 0;
@@ -114,10 +113,7 @@
 	    /* 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)




More information about the cvs-krb5 mailing list