(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:
@@ -60,8 +60,7 @@ any_resolve(krb5_context context, const char *name, krb5_keytab id)
|
|||||||
krb5_error_code ret;
|
krb5_error_code ret;
|
||||||
char buf[256];
|
char buf[256];
|
||||||
|
|
||||||
while (strsep_copy(&name, ",", buf, sizeof(buf)) != -1
|
while (strsep_copy(&name, ",", buf, sizeof(buf)) != -1) {
|
||||||
&& buf[0] != '\0') {
|
|
||||||
a = malloc(sizeof(*a));
|
a = malloc(sizeof(*a));
|
||||||
if (a == NULL) {
|
if (a == NULL) {
|
||||||
ret = ENOMEM;
|
ret = ENOMEM;
|
||||||
|
Reference in New Issue
Block a user