Commit 5e206329 authored by Chris T's avatar Chris T
Browse files

Fix issue if there is an empty string in encoded text

parent a79bc61b
......@@ -297,6 +297,13 @@ static gboolean extract_encoded_text(struct wsp_header_iter *iter, void *user)
p = wsp_header_iter_get_val(iter);
l = wsp_header_iter_get_val_len(iter);
if(l == 0) {
DBG("Length is 0! Returning empty string");
dec_text = g_strdup("");
*out = dec_text;
return TRUE;
}
switch (wsp_header_iter_get_val_type(iter)) {
case WSP_VALUE_TYPE_TEXT:
/* Text-string */
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment