From 9c4c1af181b5ecc95125855db4df39b77be3d1a0 Mon Sep 17 00:00:00 2001 From: Assar Westerlund Date: Sun, 24 Jun 2001 02:22:33 +0000 Subject: [PATCH] (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 --- lib/krb5/keytab_any.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/krb5/keytab_any.c b/lib/krb5/keytab_any.c index 09748f350..8def8d76e 100644 --- a/lib/krb5/keytab_any.c +++ b/lib/krb5/keytab_any.c @@ -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;