summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2013-07-30 12:58:15 +0100
committerRichard Hughes <richard@hughsie.com>2013-07-30 12:58:15 +0100
commit0663c3a9afc21b1e8a0d21b4348d5616faf2f50e (patch)
treedb31b00762c333b9839a74cc96f5e77a6d0a9e18
parenteed52b98c9fcfac5c0b818fdcdfb2f318eb1bde1 (diff)
downloadcolord-0663c3a9afc21b1e8a0d21b4348d5616faf2f50e.tar.gz
trivial: Fix two small buglets spotted by clang
-rw-r--r--lib/colord/cd-icc.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/colord/cd-icc.c b/lib/colord/cd-icc.c
index 9ed6feb..f8ecbc8 100644
--- a/lib/colord/cd-icc.c
+++ b/lib/colord/cd-icc.c
@@ -1024,7 +1024,7 @@ cd_icc_load_metadata_item (CdIcc *icc,
{
gboolean ret = TRUE;
gchar *ascii_name;
- gchar *ascii_value;
+ gchar *ascii_value = NULL;
GError *error_local = NULL;
/* parse name */
@@ -1889,10 +1889,6 @@ cd_icc_save_data (CdIcc *icc,
g_debug ("Using file serialization due to bad MemoryWrite.");
data = cd_icc_serialize_profile_fallback (icc, error);
}
- if (data == NULL) {
- ret = FALSE;
- goto out;
- }
out:
g_list_free (md_keys);
if (dict != NULL)