[libsoup] SoupCookieJarText: fix a bug when deleting a cookie
- From: Dan Winship <danw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup] SoupCookieJarText: fix a bug when deleting a cookie
- Date: Thu, 14 Oct 2010 19:31:34 +0000 (UTC)
commit bb011365ddc77108d436f5605b29bcb6da9462d6
Author: Dan Winship <danw gnome org>
Date: Thu Oct 14 15:30:45 2010 -0400
SoupCookieJarText: fix a bug when deleting a cookie
based on a patch from MichaÅ? Kazior
https://bugzilla.gnome.org/show_bug.cgi?id=631641
libsoup/soup-cookie-jar-text.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/libsoup/soup-cookie-jar-text.c b/libsoup/soup-cookie-jar-text.c
index 61785e3..42280ce 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);
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]