summaryrefslogtreecommitdiff
path: root/lib/colord/cd-it8.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/colord/cd-it8.c')
-rw-r--r--lib/colord/cd-it8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/colord/cd-it8.c b/lib/colord/cd-it8.c
index 269229d..aba59f2 100644
--- a/lib/colord/cd-it8.c
+++ b/lib/colord/cd-it8.c
@@ -1251,7 +1251,7 @@ cd_it8_save_to_file_cmf (CdIt8 *it8, cmsHANDLE it8_lcms, GError **error)
/* set DATA_FORMAT (using an ID if there are more than one spectra */
spectrum = g_ptr_array_index (it8->priv->array_spectra, 0);
for (i = 0; i < spectral_bands; i++) {
- _cleanup_free_ gchar *label;
+ _cleanup_free_ gchar *label = NULL;
label = g_strdup_printf ("SPEC_%.0f",
cd_spectrum_get_wavelength (spectrum, i));
cmsIT8SetDataFormat (it8_lcms, i, label);
@@ -1334,7 +1334,7 @@ cd_it8_save_to_file_ccss_sp (CdIt8 *it8, cmsHANDLE it8_lcms, GError **error)
cmsIT8SetDataFormat (it8_lcms, 0, "SAMPLE_ID");
spectrum = g_ptr_array_index (it8->priv->array_spectra, 0);
for (i = 0; i < spectral_bands; i++) {
- _cleanup_free_ gchar *label;
+ _cleanup_free_ gchar *label = NULL;
/* there are more spectral bands than integers between the
* start and stop wavelengths */
if ((cd_spectrum_get_end (spectrum) -