[core] fix uninitialized pointer to a GError structure

This commit is contained in:
Benjamin Dauvergne 2011-12-10 12:04:33 +01:00
parent f4fc26bb39
commit 900de512f2
1 changed files with 1 additions and 1 deletions

View File

@ -1767,7 +1767,7 @@ lasso_xml_parse_file(const char *filepath)
{
char *file_content;
size_t file_length;
GError *error;
GError *error = NULL;
if (g_file_get_contents(filepath, &file_content, &file_length, &error)) {
xmlDocPtr ret;