/* NULL is handled as an empty string */
-if (value == NULL) value = US"";
+if (!value)
+ {
+ value = US"";
+ vlength = 0;
+ }
/* Quote the value if it is empty, contains white space, or starts with a quote
character. */
for (ad = addr; ad != NULL; ad = ad->next)
{
- if (ad != addr) string_catn(s, &size, &offset, US" ", 1);
- string_cat(s, &size, &offset, ad->address);
+ /*XXX string_append_listele() ? */
+ if (ad != addr) s = string_catn(s, &size, &offset, US" ", 1);
+ s = string_cat(s, &size, &offset, ad->address);
}
- string_cat(s, &size, &offset, q);
+ s = string_cat(s, &size, &offset, q);
s[offset] = 0;
}