[gnome-settings-daemon] color: Don't emit a critical warning if virtual profiles exist



commit d5e038577b021399f9d7bdd9d0f08b88adb59b8a
Author: Richard Hughes <richard hughsie com>
Date:   Thu Jun 2 16:40:13 2011 +0100

    color: Don't emit a critical warning if virtual profiles exist
    
    This will only happen on meta-profiles added by CUPS from the PPD file.

 plugins/color/gsd-color-manager.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/plugins/color/gsd-color-manager.c b/plugins/color/gsd-color-manager.c
index 8fda8e0..e4c1b2c 100644
--- a/plugins/color/gsd-color-manager.c
+++ b/plugins/color/gsd-color-manager.c
@@ -302,6 +302,8 @@ gcm_session_profile_connect_cb (GObject *object,
 
         /* ensure it's a profile generated by us */
         filename = cd_profile_get_filename (profile);
+        if (filename == NULL)
+                goto out;
         basename = g_path_get_basename (filename);
         if (!g_str_has_prefix (basename, "GCM")) {
                 g_debug ("not a GCM profile for %s: %s",



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]