Check g_file_set_contents() return value

CID 1415486
This commit is contained in:
Thibault Saunier 2017-07-18 10:14:59 -04:00
parent 44260d70bd
commit 7eb9746adc

View file

@ -158,8 +158,7 @@ gst_validate_media_info_save (GstValidateMediaInfo * mi, const gchar * path,
data = gst_validate_media_info_to_string (mi, &datalength);
g_file_set_contents (path, data, datalength, err);
if (err)
if (!g_file_set_contents (path, data, datalength, err))
return FALSE;
return TRUE;
}