[Xfce4-commits] [xfce/xfce4-settings] 36/37: color: Make sure g_date_time_format doesn't fail

noreply at xfce.org noreply at xfce.org
Fri Feb 15 00:28:05 CET 2019

This is an automated email from the git hooks/post-receive script.

o   c   h   o   s   i       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       o   c   h   o   s   i   /   c   o   l   o   r   d   
   in repository xfce/xfce4-settings.

commit 155d58e219ed05e5a9e4490c728b7b3d0c309132
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Fri Feb 15 00:06:11 2019 +0100

    color: Make sure g_date_time_format doesn't fail
 dialogs/color-settings/color-profile.c | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/dialogs/color-settings/color-profile.c b/dialogs/color-settings/color-profile.c
index 969057f..3b17cb3 100644
--- a/dialogs/color-settings/color-profile.c
+++ b/dialogs/color-settings/color-profile.c
@@ -69,7 +69,10 @@ color_profile_get_profile_date (CdProfile *profile)
   if (created == 0)
     return NULL;
   dt = g_date_time_new_from_unix_utc (created);
-  return g_date_time_format (dt, "%x");
+  if (dt)
+      return g_date_time_format (dt, "%x");
+  else
+      return NULL;
 static gchar *

To stop receiving notification emails like this one, please contact
the administrator of this repository.

More information about the Xfce4-commits mailing list