Code

Fix crash in sp-skeleton.
authorjohanengelen <johanengelen@users.sourceforge.net>
Mon, 14 May 2007 23:11:59 +0000 (23:11 +0000)
committerjohanengelen <johanengelen@users.sourceforge.net>
Mon, 14 May 2007 23:11:59 +0000 (23:11 +0000)
src/sp-skeleton.cpp

index bd0d7e8271f87affee4004cf5f77b4a94a59ee1b..878d8f31b590919fb6fe52931cf6b03e20480f2b 100644 (file)
@@ -146,7 +146,7 @@ static void
 sp_skeleton_set(SPObject *object, unsigned int key, gchar const *value)
 {
     debug("0x%p %s(%u): '%s'",object,
-            sp_attribute_name(key),key,value);
+            sp_attribute_name(key),key,value ? value : "<no value>");
     SPSkeleton *skeleton = SP_SKELETON(object);
 
     /* See if any parents need this value. */