diff options
author | Dan Winship <danw@gnome.org> | 2010-10-14 15:30:45 -0400 |
---|---|---|
committer | Dan Winship <danw@gnome.org> | 2010-10-14 15:31:17 -0400 |
commit | bb011365ddc77108d436f5605b29bcb6da9462d6 (patch) | |
tree | 496830b39641df8f066822069dd6e4c126d40148 | |
parent | 7d69a138d90293068ea8177b8925fb3d99f66229 (diff) | |
download | libsoup-bb011365ddc77108d436f5605b29bcb6da9462d6.tar.gz |
SoupCookieJarText: fix a bug when deleting a cookie
based on a patch from MichaĆ Kazior
https://bugzilla.gnome.org/show_bug.cgi?id=631641
-rw-r--r-- | 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 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); } } |