Initialize the visited time of a new GBookmarkFile

Just like we do for the other fields. Otherwise, when we serialise the
item, we're going to hit a segmentation fault when trying to format a
NULL GDateTime.
This commit is contained in:
Emmanuele Bassi 2020-05-30 17:09:40 +01:00
parent 3d0e1f5c85
commit 909a8856ef

View File

@ -2041,6 +2041,9 @@ g_bookmark_file_add_item (GBookmarkFile *bookmark,
if (item->modified == NULL)
item->modified = g_date_time_new_now_utc ();
if (item->visited == NULL)
item->visited = g_date_time_new_now_utc ();
}
/**