Changed const krb5_principal to krb5_const_principal
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@1398
dc483132-0cff-0310-8789-
dd5450dbe970
krb5_error_code
krb5_unparse_name_ext(principal, name, size)
-const krb5_principal principal;
+krb5_const_principal principal;
register char **name;
int *size;
{
}
} else {
*name = malloc(totalsize); /* room for null */
- *size = totalsize;
+ if (size)
+ *size = totalsize;
}
if (!*name)
krb5_error_code
krb5_unparse_name(principal, name)
-const krb5_principal principal;
+krb5_const_principal principal;
register char **name;
{
+ *name = NULL;
return(krb5_unparse_name_ext(principal, name, NULL));
}