(parse_binding): remove trailing whitespace
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@5112 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -276,8 +276,12 @@ parse_binding(FILE *f, unsigned *lineno, char *p,
|
|||||||
tmp->u.list = NULL;
|
tmp->u.list = NULL;
|
||||||
ret = parse_list (f, lineno, &tmp->u.list);
|
ret = parse_list (f, lineno, &tmp->u.list);
|
||||||
} else {
|
} else {
|
||||||
|
p1 = p;
|
||||||
|
while (*p && !isspace(*p))
|
||||||
|
++p;
|
||||||
|
*p = '\0';
|
||||||
tmp->type = krb5_config_string;
|
tmp->type = krb5_config_string;
|
||||||
tmp->u.string = strdup(p);
|
tmp->u.string = strdup(p1);
|
||||||
}
|
}
|
||||||
if (*b)
|
if (*b)
|
||||||
(*b)->next = tmp;
|
(*b)->next = tmp;
|
||||||
|
Reference in New Issue
Block a user