aboutsummaryrefslogtreecommitdiffstats
path: root/g10/g10.c
diff options
context:
space:
mode:
Diffstat (limited to 'g10/g10.c')
-rw-r--r--g10/g10.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/g10/g10.c b/g10/g10.c
index 0452956dc..d845d84f1 100644
--- a/g10/g10.c
+++ b/g10/g10.c
@@ -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;