[libsoup] Replace unnecessary variable with a comment
- From: Gustavo Noronha Silva <gns src gnome org>
- To: svn-commits-list gnome org
- Cc:
- Subject: [libsoup] Replace unnecessary variable with a comment
- Date: Tue, 29 Dec 2009 00:39:12 +0000 (UTC)
commit 32eb2106571e0aac216e3702d13392877a8c62e9
Author: Gustavo Noronha Silva <gns gnome org>
Date: Fri Dec 25 20:30:25 2009 -0200
Replace unnecessary variable with a comment
libsoup/soup-cookie-jar-text.c | 10 ++++++++--
1 files changed, 8 insertions(+), 2 deletions(-)
---
diff --git a/libsoup/soup-cookie-jar-text.c b/libsoup/soup-cookie-jar-text.c
index bdae427..61785e3 100644
--- a/libsoup/soup-cookie-jar-text.c
+++ b/libsoup/soup-cookie-jar-text.c
@@ -168,7 +168,7 @@ parse_cookie (char *line, time_t now)
SoupCookie *cookie = NULL;
gboolean http_only;
time_t max_age;
- char *host, *is_domain, *path, *secure, *expires, *name, *value;
+ char *host, *path, *secure, *expires, *name, *value;
if (g_str_has_prefix (line, "#HttpOnly_")) {
http_only = TRUE;
@@ -189,7 +189,13 @@ parse_cookie (char *line, time_t now)
goto out;
host = result[0];
- is_domain = result[1];
+
+ /* result[1] is not used because it's redundat; it's a boolean
+ * value regarding whether the cookie should be used for
+ * sub-domains of the domain that is set for the cookie. It is
+ * TRUE if host starts with '.', and FALSE otherwise.
+ */
+
path = result[2];
secure = result[3];
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]