[libsoup/hsts: 84/101] Simplify soup_hsts_policy_new_permanent()



commit 9344b1a94deeb713d50baa0d5c73fbc0c3b58a4c
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]