1
0
Fork 0
mirror of git://git.gnupg.org/gnupg.git synced 2025-07-02 22:46:30 +02:00

* g10.c (add_group): Fixed group parsing to allow more than one

delimiter in a row and also allow tab as delimiter.
This commit is contained in:
Werner Koch 2003-01-14 09:35:31 +00:00
parent 33d6f711cc
commit 2a9bd94734
2 changed files with 10 additions and 2 deletions

View file

@ -859,8 +859,11 @@ static void add_group(char *string)
}
/* Break apart the values */
while((value=strsep(&string," ")) && *value!='\0')
add_to_strlist2(&values,value,utf8_strings);
while ((value= strsep(&string," ")))
{
if (*value)
add_to_strlist2 (&values,value,utf8_strings);
}
item=m_alloc(sizeof(struct groupitem));
item->name=name;