summaryrefslogtreecommitdiff
path: root/content
diff options
context:
space:
mode:
authorVincent Sanders <vince@kyllikki.org>2017-02-23 23:33:39 +0000
committerVincent Sanders <vince@kyllikki.org>2017-02-23 23:33:39 +0000
commit07c8ea22a5b1d8e10db20a24127332da8c7e2b72 (patch)
tree52dba90929a7be5b197083da2cb3d2a36bd01976 /content
parent1820bb7e637206b7d4b103d32aff364e5e5b529c (diff)
downloadnetsurf-07c8ea22a5b1d8e10db20a24127332da8c7e2b72.tar.gz
netsurf-07c8ea22a5b1d8e10db20a24127332da8c7e2b72.tar.bz2
fix unused variable warning on non public suffix library builds
Diffstat (limited to 'content')
-rw-r--r--content/urldb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/content/urldb.c b/content/urldb.c
index b6eaf630b..a26e785c8 100644
--- a/content/urldb.c
+++ b/content/urldb.c
@@ -3356,9 +3356,11 @@ bool urldb_set_cookie(const char *header, nsurl *url, nsurl *referer)
do {
struct cookie_internal_data *c;
- const char *suffix;
char *dot;
size_t len;
+#ifdef WITH_NSPSL
+ const char *suffix;
+#endif
c = urldb_parse_cookie(url, &cur);
if (!c) {