[gnome-color-manager] Fix segfault when the profile has no description



commit 08a4144bf7a036f949206f986a34a71e405121b6
Author: Richard Hughes <richard hughsie com>
Date:   Thu Feb 4 12:03:47 2010 +0000

    Fix segfault when the profile has no description

 src/gcm-profile.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/gcm-profile.c b/src/gcm-profile.c
index 509aac6..8db49a3 100644
--- a/src/gcm-profile.c
+++ b/src/gcm-profile.c
@@ -352,7 +352,7 @@ gcm_profile_set_property (GObject *object, guint prop_id, const GValue *value, G
 				priv->description = g_path_get_basename (priv->filename);
 			} else {
 				/* TRANSLATORS: this is where the ICC profile_lcms1 has no description */
-				priv->description = _("Missing description");
+				priv->description = g_strdup (_("Missing description"));
 			}
 		}
 		break;



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