2007-12-07 Alexander Larsson <alexl@redhat.com>
* glocalfileenumerator.c (_g_local_file_enumerator_new):
Avoid warning spew if error == NULL
svn path=/trunk/; revision=6065
2007-12-07 Alexander Larsson <alexl@redhat.com>
+ * glocalfileenumerator.c (_g_local_file_enumerator_new):
+ Avoid warning spew if error == NULL
+
+2007-12-07 Alexander Larsson <alexl@redhat.com>
+
* gfile.c:
Update docs wrt etags
dir = g_dir_open (filename, 0, error != NULL ? &dir_error : NULL);
if (dir == NULL)
{
- convert_file_to_io_error (error, dir_error);
- g_error_free (dir_error);
+ if (error != NULL)
+ {
+ convert_file_to_io_error (error, dir_error);
+ g_error_free (dir_error);
+ }
return NULL;
}