[gimp] app: don't dereference a NULL GError in file_remote_copy_file()



commit 335381579cf896962efd5337800ad8ed0dcc0633
Author: Michael Natterer <mitch gimp org>
Date:   Sat Jul 12 23:02:01 2014 +0200

    app: don't dereference a NULL GError in file_remote_copy_file()

 app/file/file-remote.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/app/file/file-remote.c b/app/file/file-remote.c
index 4449262..9e922e9 100644
--- a/app/file/file-remote.c
+++ b/app/file/file-remote.c
@@ -268,6 +268,7 @@ file_remote_copy_file (Gimp            *gimp,
 
   if (! success                      &&
       ! gimp->no_interface           &&
+      my_error                       &&
       my_error->domain == G_IO_ERROR &&
       my_error->code   == G_IO_ERROR_NOT_MOUNTED)
     {


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]