diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-06-17 15:37:14 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-06-17 15:37:14 +0100 |
commit | 470e6672b17e7d8b5527c291aaee4d8fb442728f (patch) | |
tree | 38540b9c4320db3bb9b7f775629e7fb2480efc83 | |
parent | a84c57ea5c9a2bb1f67a2ad6e630399058d7ee95 (diff) |
gstdoc-scangobj: abort with an error if we couldn't open a file for writing
-rwxr-xr-x | gstdoc-scangobj | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gstdoc-scangobj b/gstdoc-scangobj index 9cd5018..637bacb 100755 --- a/gstdoc-scangobj +++ b/gstdoc-scangobj @@ -208,6 +208,10 @@ get_object_types (void) inspect_name = g_strdup_printf ("$INSPECT_DIR" G_DIR_SEPARATOR_S "plugin-%s.xml", plugin->desc.name); inspect = fopen (inspect_name, "w"); + if (inspect == NULL) { + g_error ("Could not open %s for writing: %s\\n", inspect_name, + g_strerror (errno)); + } g_free (inspect_name); /* output plugin data */ |