Blame SOURCES/0016-fp-print-Use-g_date_copy.patch

73b847
From 201b5a9614afdc39f6cef08072834d59ab63ff65 Mon Sep 17 00:00:00 2001
73b847
From: =?UTF-8?q?Marco=20Trevisan=20=28Trevi=C3=B1o=29?= <mail@3v1n0.net>
73b847
Date: Fri, 22 Nov 2019 14:19:10 +0100
73b847
Subject: [PATCH 016/181] fp-print: Use g_date_copy
73b847
73b847
As per previous commit we depend on glib 2.56, we can use this utility
73b847
function as well.
73b847
---
73b847
 libfprint/fp-print.c | 7 ++-----
73b847
 1 file changed, 2 insertions(+), 5 deletions(-)
73b847
73b847
diff --git a/libfprint/fp-print.c b/libfprint/fp-print.c
73b847
index 1a6a70f..39c5c0a 100644
73b847
--- a/libfprint/fp-print.c
73b847
+++ b/libfprint/fp-print.c
73b847
@@ -534,11 +534,8 @@ fp_print_set_enroll_date (FpPrint     *print,
73b847
 
73b847
   g_clear_pointer (&print->enroll_date, g_date_free);
73b847
   if (enroll_date)
73b847
-    {
73b847
-      /* XXX: Should use g_date_copy, but that is new in 2.56. */
73b847
-      print->enroll_date = g_date_new ();
73b847
-      *print->enroll_date = *enroll_date;
73b847
-    }
73b847
+    print->enroll_date = g_date_copy (enroll_date);
73b847
+
73b847
   g_object_notify_by_pspec (G_OBJECT (print), properties[PROP_ENROLL_DATE]);
73b847
 }
73b847
 
73b847
-- 
73b847
2.24.1
73b847