mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-19 00:01:23 +00:00
Check g_file_set_contents() return value
CID 1415486
This commit is contained in:
parent
44260d70bd
commit
7eb9746adc
1 changed files with 1 additions and 2 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue