aboutsummaryrefslogtreecommitdiffstats
path: root/camel/providers/mbox/camel-mbox-parser.c
diff options
context:
space:
mode:
Diffstat (limited to 'camel/providers/mbox/camel-mbox-parser.c')
-rw-r--r--camel/providers/mbox/camel-mbox-parser.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/camel/providers/mbox/camel-mbox-parser.c b/camel/providers/mbox/camel-mbox-parser.c
index b17c5c1e95..7c0eec5379 100644
--- a/camel/providers/mbox/camel-mbox-parser.c
+++ b/camel/providers/mbox/camel-mbox-parser.c
@@ -488,6 +488,8 @@ read_header (CamelMboxPreParser *parser, gchar **header_content)
c = buffer[parser->current_position];
}
+
+ /* FIXME: this can cause a memory leak, for duplicated headers? */
/* copy the buffer in the preparsing information structure */
*header_content = g_strndup (parser->tmp_string->str, parser->tmp_string->len);
@@ -647,10 +649,7 @@ camel_mbox_parse_file (int fd,
while (parser->buffer[parser->current_position] != '\0') {
-
-
-
- /* read the current character */
+ /* read the current character */
if (!newline) {
c = parser->buffer[parser->current_position];
newline = (c == '\n');