diff options
author | Werner Koch <[email protected]> | 2003-01-14 09:35:31 +0000 |
---|---|---|
committer | Werner Koch <[email protected]> | 2003-01-14 09:35:31 +0000 |
commit | 2a9bd94734ada02e2efe5fba70dd5b727a2ca901 (patch) | |
tree | 8bc4e02c13b4f72ccd20d545d0dfb79aa568b6e9 /g10/g10.c | |
parent | * tdbio.c (tdbio_set_dbname): Fix assertion failure with (diff) | |
download | gnupg-2a9bd94734ada02e2efe5fba70dd5b727a2ca901.tar.gz gnupg-2a9bd94734ada02e2efe5fba70dd5b727a2ca901.zip |
* g10.c (add_group): Fixed group parsing to allow more than one
delimiter in a row and also allow tab as delimiter.
Diffstat (limited to 'g10/g10.c')
-rw-r--r-- | g10/g10.c | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -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; |