summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libsoup/soup-cookie-jar-text.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsoup/soup-cookie-jar-text.c b/libsoup/soup-cookie-jar-text.c
index 61785e31..42280cee 100644
--- a/libsoup/soup-cookie-jar-text.c
+++ b/libsoup/soup-cookie-jar-text.c
@@ -292,11 +292,11 @@ delete_cookie (const char *filename, SoupCookie *cookie)
if (*p == '\r' || *p == '\n') {
*p = '\0';
c = parse_cookie (line, now);
+ line = p + 1;
if (!c)
continue;
if (!soup_cookie_equal (cookie, c))
write_cookie (f, c);
- line = p + 1;
soup_cookie_free (c);
}
}