[glib/glib-2-38] gio: Clear error properly to prevent crash
- From: Ross Lagerwall <rossl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/glib-2-38] gio: Clear error properly to prevent crash
- Date: Tue, 29 Oct 2013 15:10:06 +0000 (UTC)
commit 685ff5c55684bea47367941fe7d79f848939d9ba
Author: Ross Lagerwall <rosslagerwall gmail com>
Date: Tue Oct 29 14:53:38 2013 +0200
gio: Clear error properly to prevent crash
https://bugzilla.gnome.org/show_bug.cgi?id=711070
gio/gfile.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gfile.c b/gio/gfile.c
index bf936ec..9e9d79d 100644
--- a/gio/gfile.c
+++ b/gio/gfile.c
@@ -2505,7 +2505,7 @@ copy_symlink (GFile *destination,
if (!tried_delete && (flags & G_FILE_COPY_OVERWRITE) &&
my_error->domain == G_IO_ERROR && my_error->code == G_IO_ERROR_EXISTS)
{
- g_error_free (my_error);
+ g_clear_error (&my_error);
/* Don't overwrite if the destination is a directory */
info = g_file_query_info (destination, G_FILE_ATTRIBUTE_STANDARD_TYPE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]