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

noreply at xfce.org noreply at xfce.org
Thu Mar 21 22:14:23 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       m   a   s   t   e   r   
   in repository xfce/xfce4-settings.

commit b24c12c68783a4ac6818348b095d7d359a82ff21
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