some code fix in procheader.c
[claws.git] / src / procheader.c
index 667e6c89794f5b971c8868bf323c30c846a7bcf4..2363c03597e3fe475ed0b0e3f9c1a51a2f5f521e 100644 (file)
@@ -212,7 +212,7 @@ GSList *procheader_get_header_list(FILE *fp)
 
        while (procheader_get_unfolded_line(buf, sizeof(buf), fp) != NULL) {
                if (header = procheader_parse_header(buf))
 
        while (procheader_get_unfolded_line(buf, sizeof(buf), fp) != NULL) {
                if (header = procheader_parse_header(buf))
-                       g_ptr_array_add(headers, header);
+                       hlist = g_slist_append(hlist, header);
                /*
                if (*buf == ':') continue;
                for (p = buf; *p && *p != ' '; p++) {
                /*
                if (*buf == ':') continue;
                for (p = buf; *p && *p != ' '; p++) {
@@ -262,8 +262,8 @@ GPtrArray *procheader_get_header_array(FILE *fp)
                                g_ptr_array_add(headers, header);
                                break;
                        }
                                g_ptr_array_add(headers, header);
                                break;
                        }
-               */
                }
                }
+               */
        }
 
        return headers;
        }
 
        return headers;