(any_resolve): make use of strsep_copy more consistent

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@10188 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
2001-06-24 02:22:33 +00:00
parent af69003d76
commit 9c4c1af181

View File

@@ -60,8 +60,7 @@ any_resolve(krb5_context context, const char *name, krb5_keytab id)
krb5_error_code ret;
char buf[256];
while (strsep_copy(&name, ",", buf, sizeof(buf)) != -1
&& buf[0] != '\0') {
while (strsep_copy(&name, ",", buf, sizeof(buf)) != -1) {
a = malloc(sizeof(*a));
if (a == NULL) {
ret = ENOMEM;