[libsoup/hsts: 15/36] Simplify soup_hsts_policy_new_permanent()
- From: Claudio Saavedra <csaavedra src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libsoup/hsts: 15/36] Simplify soup_hsts_policy_new_permanent()
- Date: Tue, 25 Sep 2018 14:56:06 +0000 (UTC)
commit cada895b573443fd40baaffe22cb0131a443281a
Author: Claudio Saavedra <csaavedra igalia com>
Date: Wed Aug 29 15:09:38 2018 +0300
Simplify soup_hsts_policy_new_permanent()
libsoup/soup-hsts-policy.c | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
---
diff --git a/libsoup/soup-hsts-policy.c b/libsoup/soup-hsts-policy.c
index 52c076b0..1908af39 100644
--- a/libsoup/soup-hsts-policy.c
+++ b/libsoup/soup-hsts-policy.c
@@ -230,8 +230,7 @@ soup_hsts_policy_new_permanent (const char *domain,
g_return_val_if_fail (is_hostname_valid (domain), NULL);
- policy = soup_hsts_policy_new (domain, 0, include_subdomains);
- g_clear_pointer (&policy->expires, soup_date_free);
+ policy = soup_hsts_policy_new_full (domain, 0, NULL, include_subdomains);
return policy;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]