projects
/
platform
/
upstream
/
glib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c8aba61
)
gio: Clear error properly to prevent crash
author
Ross Lagerwall
<rosslagerwall@gmail.com>
Tue, 29 Oct 2013 12:53:38 +0000
(14:53 +0200)
committer
Ross Lagerwall
<rosslagerwall@gmail.com>
Tue, 29 Oct 2013 15:00:30 +0000
(17:00 +0200)
https://bugzilla.gnome.org/show_bug.cgi?id=711070
gio/gfile.c
patch
|
blob
|
history
diff --git
a/gio/gfile.c
b/gio/gfile.c
index
bf936ec
..
9e9d79d
100644
(file)
--- 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,