(unparse_name): len can't be zero, so, don't check for that

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@12536 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Love Hörnquist Åstrand
2003-08-15 14:28:48 +00:00
parent e167924d17
commit 05cd3d1a7f

View File

@@ -323,7 +323,7 @@ unparse_name(krb5_context context,
}
len++;
*name = malloc(len);
if(len != 0 && *name == NULL) {
if(*name == NULL) {
krb5_set_error_string (context, "malloc: out of memory");
return ENOMEM;
}