* krb5_int32 for KV5M_CCACHE
*/
required = sizeof(krb5_int32) * 3;
- if (ccache->ops && ccache->ops->prefix)
+ if (ccache->ops->prefix)
required += (strlen(ccache->ops->prefix)+1);
/*
(void) krb5_ser_pack_int32(KV5M_CCACHE, &bp, &remain);
/* Calculate the length of the name */
- namelen = (ccache->ops && ccache->ops->prefix) ?
- strlen(ccache->ops->prefix)+1 : 0;
+ namelen = ccache->ops->prefix ? strlen(ccache->ops->prefix)+1 : 0;
fnamep = krb5_cc_get_name(kcontext, ccache);
namelen += (strlen(fnamep)+1);
- if (ccache->ops && ccache->ops->prefix) {
+ if (ccache->ops->prefix) {
if (asprintf(&ccname, "%s:%s", ccache->ops->prefix, fnamep) < 0)
ccname = NULL;
} else